Plugin which adds the Google Tag Manager snippets to your Kirby CMS website.
Put the kirby-gtm folder in your site/plugins folder.
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.
Set your Google Tag Manager property ID, e.g. GTM-XXXX in the config file:
'bvdputte.gtm.propId' => "GTM-123456",