extension

Google Tag Manager plugin

Repo Release Link Client Features Developer
repo 16/12-24 link AnalyticsCookiebotGTM Jørgen Stenshaugen, Kevin

Functionality

Adds Google Tag Manager functionality with optional CookieBot and Consent mode support. It’s mainly there to replace third party extensions with proper setup of Tag manager and CookieBot.

Planned features are:

  • CookieBot vimeo & youtube blocking overlay.
  • WooCommerce Data layers
  • And maybe Data layers for plugins like GravityForms etc.
  • Subsite shared settings – so you don’t have to fill out the same settings on each subsite.

How to install

First make sure composer.dekodes.no is in the composer.json repositories

{
  "repositories": [{
    "type": "composer",
    "url": "https://composer.dekodes.no"
  }]
}

then require the plugin

composer require "dekode/dekode-gtm-plugin"

Links

Used on https://elverumfhs.no and https://friida.no/

Notes

You’ll need to configure Tag Manager yourself in order to get CookieBot x Ad consent to work properly. See elverumfhs.no in tagmanger for example. The plugin does not add the cookies information script that should be added to a page in order list the different cookies.

Useful link:

https://support.cookiebot.com/hc/en-us/articles/360003793854-Google-Tag-Manager-deployment

You should skip to step 1.1, since adding CookieBot directly in tagmanager will disable autoblocking of cookies.

The plugin is maintained by support and will likely get more features as they get time to develop on it.