WPThumbs
Themes Plugins By purpose By industry Best-of lists Fix it guides
Free Plugin by Leon Hitchens v1.6.0

Metronet Tag Manager

Integrate Google Tag Manager into your website.

Metronet Tag Manager

The facts

Rating
4.8★ from 8
Active installs
20k+
Price
Free
Last updated
25 Apr 2026
Added
Jul 2013
Requires WP
4.2
Tested up to
WP 7.0.4
Downloads
285,290

Our analysis

AI-assisted

Metronet Tag Manager is a WordPress plugin that integrates Google Tag Manager into your website. It allows you to manage tracking scripts from a central location and set firing rules for these scripts based on your specifications.

The plugin enables you to add dataLayer variables on a per-post and per-page basis, includes predefined variables, and allows for customization of HTML event handlers. Some minor customisation is required to ensure proper functionality with your theme.

Best for: This plugin is suitable for website owners who want to implement Google Tag Manager without extensive coding knowledge.

What it does well

  • Easily add dataLayer variables per post or page
  • Includes predefined dataLayer variables
  • Custom HTML event handlers can be added
  • Compatible with WordPress 5.2 and up
  • Free to use from the WordPress.org directory

Where it falls short

  • Requires minor customisation for proper setup
  • Limited information on additional features or support

Verdict

Metronet Tag Manager provides a straightforward way to manage tracking scripts, but requires some initial setup. It may be particularly useful for users looking to enhance their analytics capabilities.

From the developer

Leon Hitchens's own description of Metronet Tag Manager, lightly tidied.

Integrate Google Tag Manager into your website.

The great thing about Google Tag Manager (GTM) is that you are able to gather most of your tracking scripts in one place. You can then fire these scripts whenever you want, specified by the rules you set up. This sounds great, right? Well it is. The only problem is that sometimes it takes a bit of implementing to set these rules up. This implementation can either be setting a dataLayer variable in the dataLayer before the tag manager script is loaded, or pushing a HTML event handler with the variable “event” to the dataLayer when a button is clicked. The problem is that this isn’t always that easy to do when you don’t have the ability/access to add the code to your site.

This is where the Metronet Tag Manager plugin shines. It really unlocks the power of the dataLayer so you can easily set macros and firing rules on almost any element.

This plugin lets you:

  • Easily add as many dataLayer variables on a per-post and per-page basis as you need.
  • The plugin already gives you six predefined dataLayer variables that you can change/remove or test the system with. These will be loaded on all pages and posts.
  • Set up separate dataLayer variables for pages that aren’t posts or pages (like archives etc).
  • Lets you easily add a HTML event handler to any content link with the GTM TinyMCE button in the WYSIWYG.
  • Lets you add your own unique ID or a class to each content link with the GTM TinyMCE button in the WYSIWYG.

Please note that for this plugin to work there is a slight customization that is needed. WordPress doesn’t let you load scripts straight after the opening tag which is where the GTM script needs to be placed to work correctly. To fix this you need to add <?php do_action( 'body_open' ); ?> just after the <body> tag and that’s it.

Note, if you are using WordPress 5.2. and up, contact your theme developer and ask them to insert <?php wp_body_open(); ?> just after the opening body tag of their theme. Here is some code to show the theme developer to make it compatible with Metronet Tag Manager.

Please let us know if you have any feature requests or if you have any issues with this plugin.

Below are a couple of resources you might find valuable if you are new to Google Tag Manager

Official Google Tag Manager website
https://developers.google.com/tag-manager/

Tracking Google Analytics Events with Google Tag Manager
http://moz.com/ugc/tracking-google-analytics-events-with-google-tag-manager

Make Analytics Better with Tag Management and a Data Layer
http://cutroni.com/blog/2012/05/14/make-analytics-better-with-tag-management-and-a-data-layer/

Filtering Variables

If you choose to place variable values inside percentage signs (e.g., %replace_test%), you can filter these as necessary.

Here’s an example:

add_filter( 'gtm_replace_test', 'gtm_replace_test', 10, 3 );
function gtm_replace_test( $total_match, $match, $post_id ) {
    return "replaced with content";
}

Read the full description on the official page →

Tagged as

Alternatives

Other plugins for measuring traffic.

Under Construction

Easy to use Under Construction Page &amp; Coming Soon Page. Enable Under Construction Mode in seconds &amp; sh...

Free 600k+ installs 4.8★ (1,285)
Ad Inserter

Manage Google AdSense ads, banners, ad rotation, sticky widgets, AMP ads, ads.txt, tracking, header and footer...

Free 300k+ installs 4.9★ (2,428)
MonsterInsights

The best free Google Analytics plugin for WordPress. See how visitors find and use your website so you can gro...

Free 2M+ installs 4.5★ (3,148)
Maintenance

Great looking maintenance, coming soon &amp; under construction pages. Put your site under maintenance in minu...

Free 1M+ installs 4.4★ (860)
Header Footer Code Manager

Easily add tracking code snippets, conversion pixels, or other scripts required by third party services for an...

Free 600k+ installs 4.9★ (309)
GA Google Analytics

Adds Google Analytics tracking code to your WordPress site. Supports many tracking features.

Free 400k+ installs 4.9★ (158)