Skip to content

Releases: breonwilliams/minimal-ga4-tracker

v1.1.6

Choose a tag to compare

@github-actions github-actions released this 18 Apr 22:06

Full Changelog: v1.1.4...v1.1.6

v1.1.4

Choose a tag to compare

@breonwilliams breonwilliams released this 18 Apr 21:45

Fix update detection reliability

Fixed an issue where update notifications weren't appearing because the pre_set_site_transient_update_plugins filter sometimes fires before WordPress populates the checked array.

Changes

  • Removed early return when $transient->checked is empty
  • Update check now always runs regardless of transient state

v1.1.3

Choose a tag to compare

@breonwilliams breonwilliams released this 18 Apr 21:33

Fix Google tag detection by outputting script in head with async attribute.

Changes:

  • Output gtag script directly in <head> at priority 1 instead of using WordPress enqueue system
  • Use standard async attribute instead of data-wp-strategy="async"
  • Script now matches Google's expected format exactly

Before:

<script src="https://www.googletagmanager.com/gtag/js?id=G-..." id="mga4-gtag-js" data-wp-strategy="async"></script>

After:

<script async src="https://www.googletagmanager.com/gtag/js?id=G-..."></script>

This resolves the "Your Google tag wasn't detected on your website" error in Google Analytics.

v1.1.2

Choose a tag to compare

@breonwilliams breonwilliams released this 18 Apr 21:24

Fix: Phantom Update Notification

Resolves the issue where WordPress would show "Update to 1.1.1" even when version 1.1.1 was already installed.

What Changed

  • The updater now reads the actual installed version from the plugin file header on disk
  • This prevents stale version comparisons when the old plugin code is still loaded in memory after an update

Verification

After updating:

  1. Go to Plugins page
  2. No phantom update notification should appear

v1.1.1

Choose a tag to compare

@breonwilliams breonwilliams released this 18 Apr 21:20

Fix: Google Tag Detection

This release fixes an issue where Google Tag Manager reported "Your Google tag wasn't detected" during installation verification.

What was fixed

  • Removed the version query string (?ver=1.1.0) from the gtag script URL
  • Google's tag detection now properly recognizes the installed tag

Upgrade

After updating, clear your site cache and verify the tag is detected:

  1. Go to Google Tag Manager → Installation Instructions
  2. Click "Test your website"
  3. Should now report "Google tag detected"

v1.1.0

Choose a tag to compare

@breonwilliams breonwilliams released this 18 Apr 18:58

What's New

GitHub Auto-Updater

The plugin now supports automatic updates directly from GitHub releases. When a new version is available, you'll see an update notification in your WordPress admin just like any other plugin.

Documentation

  • Added comprehensive README with installation and usage instructions
  • Added CLAUDE.md development guide for AI-assisted development
  • Added GPL-2.0 LICENSE file

Changes

  • Added MGA4_Updater class for checking and installing updates from GitHub
  • Added mga4_gtag_config filter hook for customizing gtag configuration
  • Version bump to 1.1.0

Testing Updates

After installing this version, you can test the auto-updater by:

  1. Visiting /wp-admin/?clear_mga4_update_cache=1 to clear the cache
  2. Checking the Plugins page for update notifications