====== GoogleTagManager Plugin ====== ---- plugin ---- description: DokuWiki plugin to add a Google Tag Manager tag to each wiki page author : Alexander Lehmann email : alexlehm@gmail.com type : action lastupdate : 2022-12-29 compatible : 2014-09-29a+ similar : googleanalytics tags : tags, statistics, google downloadurl: https://github.com/alexlehm/dokuwiki-plugin-gtm/zipball/master bugtracker : https://github.com/alexlehm/dokuwiki-plugin-gtm/issues sourcerepo : https://github.com/alexlehm/dokuwiki-plugin-gtm/ ---- ===== Installation ===== To use this plugin you need a google account and need to create tag manager account https://www.google.com/tagmanager/ Search and install the plugin using the [[plugin:extension|Extension Manager]]. Refer to [[:Plugins]] on how to install plugins manually. ===== Examples/Usage ===== Just configure the GTM-ID on the configuration page and configure your tags on the google tag manager page. Please note that the tag will be put on all pages including the admin pages. To change that, you can create page rules on gtm that exclude certain pages based on regexp. ===== Change Log ===== * **2014-11-10** * Initial release for public * **2020-10-24** * Update method signature to be compatible with current php versions (thanks to Andreas for the pr, i missed that for 4 years) * **2021-12-19** * Merge PR from @gerardnico to add a test for the plugin action * **2022-12-29** * Add support for Google Ads tags using the AW-* code