Releases: breonwilliams/minimal-ga4-tracker
Release list
v1.1.6
Full Changelog: v1.1.4...v1.1.6
v1.1.4
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->checkedis empty - Update check now always runs regardless of transient state
v1.1.3
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
asyncattribute instead ofdata-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
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:
- Go to Plugins page
- No phantom update notification should appear
v1.1.1
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:
- Go to Google Tag Manager → Installation Instructions
- Click "Test your website"
- Should now report "Google tag detected"
v1.1.0
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_Updaterclass for checking and installing updates from GitHub - Added
mga4_gtag_configfilter hook for customizing gtag configuration - Version bump to 1.1.0
Testing Updates
After installing this version, you can test the auto-updater by:
- Visiting
/wp-admin/?clear_mga4_update_cache=1to clear the cache - Checking the Plugins page for update notifications