dsdeboer / google-tag-manager
This package is abandoned and no longer maintained.
The author suggests using the charpand/google-tag-manager package instead.
A Google Tag Manager extension for Bolt.
v1.0.2
2022-02-05 16:39 UTC
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
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