WP Global Site Tag source code
By digitalapps, on WordPress.org since 2017. 7,000+ active installs.
WP Global Site Tag provides two related tools without mixing their state: Tracking installs a Google tag or Google Tag Manager container on the public site. Below is its source code for every one of its 7 releases, what changed in the latest one, and how often it ships.
What changed in 2.0.3
Released Sep 5, 2026, 1 week after 2.0.2- Preserved JavaScript string and regular-expression escapes when saving tracking settings.
- Moved extended date-range controls and comparison calculations into the separately distributed Pro add-on.
- Preserved case-sensitive Analytics metric names and rejected unsupported metric selections before caching or requesting reports.
9 files changed since 2.0.2: 9 modified, 0 added, 0 removed.
- README.txt modified, +541 bytes
- admin/class-wp-global-site-tag-admin.php modified, +14 bytes
- admin/partials/wp-global-site-tag-admin-page-analytics.php modified, +142 bytes
- includes/analytics/class-wp-global-site-tag-date-range.php modified, +403 bytes
- includes/analytics/class-wp-global-site-tag-report-service.php modified, +292 bytes
- includes/analytics/class-wp-global-site-tag-rest-controller.php modified, +79 bytes
- includes/class-wp-global-site-tag.php modified, same size
- languages/wp-global-site-tag.pot modified, -31 bytes
- wp-global-site-tag.php modified, same size
Release history
7 releases since March 2018- 2.0.3 Sep 5, 2026 Preserved JavaScript string and regular-expression escapes when saving tracking settings.
- 2.0.2 Aug 27, 2026 Fixed property search so nonmatching Analytics properties are hidden as the administrator types.
- 2.0.1 Aug 21, 2026 Redesigned the Free Analytics dashboard for faster traffic, content, and engagement scanning.
- 2.0.0 Jul 28, 2026 Added a persistent Connect with Google flow, advanced self-managed OAuth, property selection, and website data-stream setup.
- 1.1.1 Jul 17, 2026