Metronet Tag Manager
Integrate Google Tag Manager into your website.
Choix solide
Metronet Tag Manager is a solid plugin choice in 2026, with a few things worth checking first. It runs on 20K+ sites, is rated 4.8/5 and was last updated 7 months ago, and scores 63/100 on our health check.
- Prouvé à grande échelle sur plus de 20 000 sites actifs
Comment s'accumule-t-il ?
Côte à côte sur les installations, les mises à jour, les évaluations et le supportTéléchargements quotidiens
Les pics de téléchargement suivent généralement une nouvelle version - chaque site qui met à jour automatiquement compte comme un téléchargement.
Classements
Where Metronet Tag Manager stands todayWordPress.org Classements de recherche
Position en direct dans la recherche de plugins, Top 100| Mot-clé | Position |
|---|---|
| >100 | |
| google tag manager | #9 |
| tag manager | #7 |
Adoption de version
Part de sites actifs par version.
Répartition des notes
★★★★★★★★★★ 4.8 from 8 reviews
About Metronet Tag Manager
From the official readme · v1.6.0Description
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";
}
The filter name is gtm_ with the suffix of replace_test, since that content is inbetween the percentage signs.
Installation
- Just unzip and upload the “metronet-tag-manager” folder to your ‘/wp-content/plugins/’ directory
- Activez le plugin via le menu « Plugins » dans WordPress
- Modify your theme’s
header.phpto include<?php do_action( 'body_open' ); ?>right after the opening<body>tag. - Go to the plugin’s settings and input your Google Tag Manager data.
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.
For custom values, please see the filters section on GitHub.
Journal de modifications
Major release tested up to WordPress 7.0. New built-in placeholders, Google Consent Mode v2, settings import/export, conditional tag loading, login page support, and a standalone Gutenberg dataLayer push block. Recommended for all users.
1.6.0
- Released 2026-04-24
- Testé jusqu'à WordPress 7.0.
- Fixed plugin URI pointing to wrong plugin slug (was metronet-profile-picture, now metronet-tag-manager), resolving false-positive security scanner alerts.
- Added GTM tag output on the WordPress login page — new “Enable on login page” toggle in settings.
- Fixed %category% and similar placeholders being incorrectly stripped during sanitization; reworked sanitize_value() to preserve any %placeholder% token regardless of surrounding text.
- Wired up Gutenberg REST API route for reading and saving per-post dataLayer variables (previously register_routes() was empty dead code).
- WPCS 3.0 compliance: renamed getMessage() to get_message(), replaced curl with wp_remote_get(), added $wpdb->prepare() in uninstall.php.
- Added five new built-in dataLayer variable placeholders: %category% (primary category slug), %tags% (comma-separated tag slugs), %post_id% (numeric post ID), %permalink% (canonical URL), %language% (site locale via get_locale()).
- Added Google Consent Mode v2 support: configurable default consent states (analytics_storage, ad_storage, ad_user_data, ad_personalization, functionality_storage, personalization_storage, security_storage) output as a gtag() call before the GTM snippet.
- Added Settings Import/Export: export all plugin settings as a JSON file and re-import them on another site via the admin UI.
- Added Conditional Tag Loading: new checkboxes to exclude GTM from logged-in users and/or mobile devices (uses wp_is_mobile()).
- Added standalone Gutenberg block metronettagmanager/datalayer-push — insert a button anywhere in the block editor; configure the event name, key, and value in the block inspector; renders a frontend button that fires dataLayer.push() on click.
1.5.5
- Released 2023-06-24
- Adding ability to update header message remotely.
1.5.4
- Released 2019-07-16
- Adding GTM dataLayer on search pages.
1.5.3
- Released 2019-07-16
- Added Beaver Builder compatibility.
1.5.2
- Released 2019-05-24
- Updating documentation.
- Adding option to hide GTM data layer settings on posts/pages.
1.5.1
- Released 2019-05-21
- Added support for WordPress 5.2’s wp_body_open tag.
Pour les développeurs
Est-ce votre plugin ? Montrez les chiffres.
Ajoutez un badge en direct à votre site, docs ou github readme. Il se met à jour par lui-même - aucun compte n'est nécessaire.
Best Metronet Tag Manager alternatives
All google plugins →FAQ
Metronet Tag Manager: quick answers
Réponses directes, extraites des données en direct WordPress.org.
Source : WordPress.org
Is Metronet Tag Manager free?
Yes. Metronet Tag Manager is free to download and use from the official WordPress.org plugin directory.
Is Metronet Tag Manager safe to use in 2026?
Metronet Tag Manager is a solid plugin choice in 2026, with a few things worth checking first. It runs on 20K+ sites, is rated 4.8/5 and was last updated 7 months ago, and scores 63/100 on our health check.
How many websites use Metronet Tag Manager?
Metronet Tag Manager is active on 20K+ WordPress websites and has been downloaded 291,862 times since it launched in July 2013. It was downloaded 2,133 times in the last 30 days.
Does Metronet Tag Manager work with WordPress 7.1?
Metronet Tag Manager is officially tested up to WordPress 7.0.9, while the latest release is 7.1.5. It may still work, but try it on a staging site first.
When was Metronet Tag Manager last updated?
The latest version, 1.6.0, was released on April 25, 2026 (7 months ago).
Who makes Metronet Tag Manager?
Metronet Tag Manager is developed and maintained by Leon Hitchens.
What are the best alternatives to Metronet Tag Manager?
The most popular alternatives to Metronet Tag Manager are Site Kit by Google (5M+ installs), Google for WooCommerce (800K+ installs) and GA Google Analytics (400K+ installs).
Propulsé par PageForge
Un modèle et une feuille de calcul. Une vraie page pour chaque recherche.
PageForge transforme chaque ligne d'un CSV en une page WordPress avec son propre titre, URL, SEO et schéma, construit sur la mise en page que vous Déjà conçu. Gratuit sur WordPress.org.
- CSV et XLSX, plus Google Sheets sur les professionnels et les entreprises
- Son propre titre, URL, SEO champs et schéma pour chaque page
- Fonctionne avec l'éditeur de blocs, Elementor, Divi et Avada
- Gratuit sur WordPress.org, pas de carte de crédit




