It's better when it's simple

User Tools

Site Tools


GoogleTagManager Plugin

Compatible with DokuWiki


plugin DokuWiki plugin to add a Google Tag Manager tag to each wiki page

Last updated on


To use this plugin you need a google account and need to create tag manager account

Search and install the plugin using the Extension Manager. Refer to Plugins on how to install plugins manually.


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
plugin/googletagmanager.txt · Last modified: 2022-12-29 02:01 by alexlehm

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki