PHPackages                             tv2regionerne/statamic-cookiebot - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. tv2regionerne/statamic-cookiebot

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

tv2regionerne/statamic-cookiebot
================================

v1.0.0(2y ago)05PHP

Since Jan 16Pushed 2y ago2 watchersCompare

[ Source](https://github.com/tv2regionerne/statamic-cookiebot)[ Packagist](https://packagist.org/packages/tv2regionerne/statamic-cookiebot)[ RSS](/packages/tv2regionerne-statamic-cookiebot/feed)WikiDiscussions main Synced today

READMEChangelog (2)Dependencies (7)Versions (4)Used By (0)

Statamic Cookiebot
==================

[](#statamic-cookiebot)

> Statamic Cookiebot is a Statamic addon that integrates with CookieBot.

Features
--------

[](#features)

Please see the cookiebot documentation for the js properties, methods and events

How to Install
--------------

[](#how-to-install)

You can search for this addon in the `Tools > Addons` section of the Statamic control panel and click **install**, or run the following command from your project root:

```
composer require tv2regionerne/statamic-cookiebot
```

Set the ENV COOKIEBOT\_ID with the Domain Group ID.
This is found in your cookiebot account under Your Scripts section.

```
COOKIEBOT_ID=4cdc3711-42e3-45f8-8143-70964c23343c
```

You may publish the config and overwrite the attributes of the tag. See the `config/statamic-cookiebot.php` files.

```
php artisan vendor:publish --tag=statamic-cookiebot-config
```

How to Use
----------

[](#how-to-use)

Add this antlers tag to the header of your template to add the cookiebot js code.

```

  {{ cookiebot:scripts }}

```

The tag will output a html tag like this if the `COOKIEBOT_ID` env has been configured.

```

```

### Client side

[](#client-side)

A javascript API is available directly from Cookiebot.
See the js documentation at

### Server side

[](#server-side)

For server side checking of consent, use one of the below tags.
The tags will return a boolean.

```
{{ cookiebot:necessary }}
{{ cookiebot:preferences }}
{{ cookiebot:statistics }}
{{ cookiebot:marketing }}
{{ cookiebot:all }}
```

To wrap some code use it like this.
Check for consent on `necessary`.

```
{{ if {cookiebot:necessary} }}
    // code when consent is given
{{ else }}
    // code when no consent is given
{{ /if }}
```

Tag options are:

###  Health Score

21

—

LowBetter than 18% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity44

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~0 days

Total

2

Last Release

897d ago

Major Versions

v0.1.0 → v1.0.02024-01-17

### Community

Maintainers

![](https://www.gravatar.com/avatar/b9761a79e61f2d5b9d650510dfb3555da18daf38f027aa84012c937e397e39a7?d=identicon)[cboxdk](/maintainers/cboxdk)

---

Top Contributors

[![sylvesterdamgaard](https://avatars.githubusercontent.com/u/2431914?v=4)](https://github.com/sylvesterdamgaard "sylvesterdamgaard (1 commits)")

###  Code Quality

TestsPest

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/tv2regionerne-statamic-cookiebot/health.svg)

```
[![Health](https://phpackages.com/badges/tv2regionerne-statamic-cookiebot/health.svg)](https://phpackages.com/packages/tv2regionerne-statamic-cookiebot)
```

###  Alternatives

[statamic/seo-pro

68516.6k](/packages/statamic-seo-pro)[statamic-rad-pack/runway

Eloquently manage your database models in Statamic.

135224.7k7](/packages/statamic-rad-pack-runway)[rias/statamic-redirect

29335.6k](/packages/rias-statamic-redirect)[jacksleight/statamic-bard-texstyle

18195.4k](/packages/jacksleight-statamic-bard-texstyle)[marcorieser/statamic-livewire

A Laravel Livewire integration for Statamic.

23111.5k14](/packages/marcorieser-statamic-livewire)[withcandour/aardvark-seo

Save time and get your Statamic site to rank better with the SEO addon for Statamic.

15133.0k](/packages/withcandour-aardvark-seo)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
