Extension:GoogleTagManager

The GoogleTagManager extension integrates a Google Tag Manager container, e.g. containing a Google Universal Analytics tracking code, into each mediawiki page.

This extension is based on the extension Google Analytics Integration.

Configuration parameters

 * $wgGoogleTagManagerContainerID: Set this to the container ID, shown in your Google Tag Manager account, e.g. GTM-XXXXXX

Known issues
The container code is integrated before the closing body tag. The official documentation in contrast proposed integration right after the opening body tag. General tracking however works fine.

Code

 * File GoogleTagManager.pgp


 * File GoogleTagManager.i18n.php