dsdeboer / google-tag-manager
A Google Tag Manager extension for Bolt.
Package info
gitlab.com/dsdeboer/google-tag-manager
Type:bolt-extension
pkg:composer/dsdeboer/google-tag-manager
Requires
- php: >=7.4 | >=8.0
Requires (Dev)
- bolt/core: ^4.0 | ^5.0
- roave/security-advisories: dev-latest
- symfony/twig-bundle: ^5.3 | ^6.0
- twig/extra-bundle: ^2.12 | ^3.0
- twig/twig: ^2.12 | ^3.0
Suggests
None
Provides
None
Conflicts
None
Replaces
None
README
The Bolt extension automatically adds the code snippets needed to run Tag Manager on your site.
To get it set up, create a Container ID on Google Tag Manager website, then add it extension config file. The extension will do the rest.
Snippets can be added to the frontend and/or backend using the configuration file.
Read more about setting up Tag Manager.
Enabling
To enable Google Tag Manager include the following config to config/extensions/dsdeboer-googletagmanager.yaml or config/extensions/dsdeboer-googletagmanager_local.yaml
# The Container ID looks like 'GTM-XXXXX'.
google_tag_manager: ''
# If you don't already include bootstrap, also add the next line, otherwise leave it out!
auto_provide_bootstrap: true