Skip to content

Google Tag Manager snippets for Kirby CMS

Notifications You must be signed in to change notification settings

gutewebsites/kirby-gtm

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Kirby Google Tag Manager snippet

Plugin which adds the Google Tag Manager snippets to your Kirby CMS website.

Installation

Put the kirby-gtm folder in your site/plugins folder.

Usage

Add the snippet as close to the opening <head> tag as possible:

<?php snippet('google-tag-manager') ?>

Add the snippet immediately after the <body> tag as possible:

<?php snippet('google-tag-manager-noscript') ?>

💡 Don't forget to set your property ID. If you don't set a property ID (or if it's empty), the snippet won't have any output.

Kirby configurable options

Set your Google Tag Manager property ID, e.g. GTM-XXXX in the config file:

'bvdputte.gtm.propId' => "GTM-123456",

About

Google Tag Manager snippets for Kirby CMS

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 100.0%