Skip to content

GTM4WP 2.0.0-beta1

Pre-release
Pre-release

Choose a tag to compare

@duracelltomi duracelltomi released this 27 Jul 04:08
· 192 commits to master since this release

GTM4WP 2.0.0-beta1 — first public beta of the 2.0 rewrite.

⚠️ Beta — test on staging first. wordpress.org still serves 1.22.4 as the stable release; this beta ships only here on GitHub. A full announcement with upgrade notes will follow on gtm4wp.com.

2.0 is a complete object-oriented rewrite. Existing setups keep working — all template functions, filter/action names, wp-config constants and the gtm4wp-options key are unchanged.

Highlights

  • Modern React settings screen with search, inline validation, and settings export/import
  • Per-container environment parameters, custom domain/path, "omit container ID", and a production-only kill switch
  • Cache-safe data layer (experimental) — no visitor/session data baked into cached HTML
  • WooCommerce Cart & Checkout block support; Mini-Cart / Product Collection / cross-sell tracking
  • Reliable purchase tracking, configurable trigger statuses, Enhanced Conversions user data, transaction-id prefix
  • Many new Page variables (word count / reading time, primary category, language, PublishPress Authors, …)
  • Numeric-looking identifiers (SKUs, order numbers, postcodes) now stay strings in the data layer

Requires PHP 8.0+ and WordPress 6.3+.

Install (beta)

Download the packaged duracelltomi-google-tag-manager-for-wordpress-2.0.0-beta1.zip attached below (⚠️ not the auto-generated "Source code" archive — it has no compiled JS and will not run).

WP admin → Plugins → Add New → Upload Plugin → choose the zip. On a site already running 1.x, deactivate the current GTM4WP first, then upload; your settings are migrated automatically.

Feedback

Please open issues at https://github.com/duracelltomi/gtm4wp/issues with "2.0 beta" in the title.