This is a plugin to add Google Tag Manager to your site.
The plugin can be installed to your site from the CrafterCMS Marketplace
The following parameters can be provided during the plugin installation:
enabled
: Indicates if the Google Tag Manager plugin should be added to all pages, defaults tofalse
in previewid
: The container id that starts withGTM-
After installation the configuration can be updated from the Plugin Management section in Crafter Studio
If the plugin is enabled in the site configuration but some pages should not include the Google Tag Manager markup it is possible to override the configuration using a field in the content-type:
Field Type | Field Name |
---|---|
checkbox |
disableGoogleTagManager_b |
When the property is added to a content-type authors can use it do control which pages are excluded.