Skip to content

gboyers/MediaWiki-GoogleTagManager

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MediaWiki-GoogleTagManager Extension

This extension allows you to seamlessly integrate Google Tag Manager into your MediaWiki website.

Installation

  1. Clone this repository inside your extensions/ directory.

    cd extensions/
    git clone https://github.com/gboyers/MediaWiki-GoogleTagManager.git GoogleTagManager
  2. Add the following code to your LocalSettings.php:

    wfLoadExtension('GoogleTagManager');
    $wgGoogleTagManagerID = 'GTM-XXXXXX'; // Replace with your actual Google Tag Manager ID
  3. Navigate to Special:Version on your wiki to verify the extension is successfully installed.

Configuration

  • $wgGoogleTagManagerID: Set this configuration variable to your Google Tag Manager container ID.

Usage

Once installed and configured, the Google Tag Manager script will be automatically embedded into the pages of your MediaWiki site. You can then utilise the Google Tag Manager dashboard to manage your tags, triggers, and variables.

Contributing

Contributions to this extension are warmly welcomed! If you encounter any issues or have suggestions for improvements, please submit them to the GitHub repository's issues page.

License

This extension is licensed under GPL-3.0-or-later.

See Also

About

To integrate Google Tag Manager with MediaWiki

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Languages