Metronet Tag Manager source code

By Leon Hitchens, on WordPress.org since 2013. 20,000+ active installs.

Browse code Download zip

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. Below is its source code for every one of its 24 releases, what changed in the latest one, and how often it ships.

What changed in 1.6.0

Released Apr 25, 2026, 3 months after 1.5.5
  • Released 2026-04-24
  • Tested up to 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).

15 files changed since 1.5.5: 7 modified, 1 added, 7 removed.

And 5 more.

Compare 1.5.5 with 1.6.0

Release history

24 releases since July 2013
  1. 1.6.0 Apr 25, 2026 Released 2026-04-24
  2. 1.5.5 Dec 26, 2025 Released 2023-06-24
  3. 1.5.4 Dec 7, 2022 Released 2019-07-16
  4. 1.5.3 Jul 16, 2019 Released 2019-07-16
  5. 1.5.2 May 24, 2019 Released 2019-05-24
Full Metronet Tag Manager changelog with diffs

Source of 1.6.0

21 files
Browse all Metronet Tag Manager 1.6.0 files Browse trunk