Notable changes to this project will be documented in this file.
- Support for Silverstripe 6
- Add void return type for PHP 8 compatibility with Functional Test
- Add script uniqueness ids
- Allow install on Silverstripe 5
- Bugfix: Fixed issue where GA4 keys were not being swapped out in non-live modes
- Properly detect if GA is not loaded
- Migrate from
analytics.jstogtag.js(big thanks to @UndefinedOffset for the heavy lifting!) - Rewrite sections of code, improve PSR2
- Use
https://www.google-analytics.com/analytics.jsnot//www.google-analytics.com/analytics.js - Improve inline documentation / PSR2
- Bugfix - prevent IE from opening email links twice
- Switch to silverstripe-vendormodule
- Replace default configuration with static variables
- Add
track_in_dev_modeoption - Rename
404_categoryoption topage_404_category(cannot declare static variable beginning with a number) - Rename
error_categoryoption topage_error_category(cannot declare static variable beginning with a number)
- Switch to new SilverStripe caching
- Add option to use a locally cached Google analytics.js (default off - requires Guzzle)
- Add cache_hours option to set caching period (default: 48 hours)
-
- Support for SilverStripe 4
- Updated yaml config (please take note of changes FQCNs!)
- Updated tracker properties to HTMLText required for templating
- Add optional "no tracking" classname for external links
- Add option to use a locally cached Google analytics.js (default off)
- Add cache_hours option to set caching period (default: 48 hours)
Major rewrite of entire module! No changes needed if you're upgrading.
- Yaml configs for event category names for Google Analytics (yaml)
- Use templating system for generating tracking code
- Better JavaScript to cater for Ctrl|Alt|Meta-click combinations
- Use
mousedownevent to fire tracking (except for touchscreen devices) to bypass limitations in Internet Explorer which ignoresclickevents with Ctrl|Alt|Meta-click
Unfortunately the previous "silverstripe-analytics.js" folder name was causing some issues upstream (SilverStripe modules site), so I have had to rename the project to "silverstripe-analytics-js". Apologies in advance is this mucks up your composer config (simple fix however).
- Adopt semantic versioning releases
- Release versions