Skip to content

Latest commit

 

History

History
103 lines (52 loc) · 2.52 KB

File metadata and controls

103 lines (52 loc) · 2.52 KB

Changelog

Notable changes to this project will be documented in this file.

[5.0.0]

  • Support for Silverstripe 6

[4.0.4]

  • Add void return type for PHP 8 compatibility with Functional Test
  • Add script uniqueness ids

[4.0.3]

  • Allow install on Silverstripe 5

[4.0.2]

  • Bugfix: Fixed issue where GA4 keys were not being swapped out in non-live modes

[4.0.1]

  • Properly detect if GA is not loaded

[4.0.0]

  • Migrate from analytics.js to gtag.js (big thanks to @UndefinedOffset for the heavy lifting!)
  • Rewrite sections of code, improve PSR2

[3.1.6]

  • Use https://www.google-analytics.com/analytics.js not //www.google-analytics.com/analytics.js
  • Improve inline documentation / PSR2

[3.1.5]

  • Bugfix - prevent IE from opening email links twice

[3.1.4]

  • Switch to silverstripe-vendormodule

[3.1.3]

  • Replace default configuration with static variables
  • Add track_in_dev_mode option
  • Rename 404_category option to page_404_category (cannot declare static variable beginning with a number)
  • Rename error_category option to page_error_category (cannot declare static variable beginning with a number)

[3.1.2]

  • Switch to new SilverStripe caching

[3.1.0]

  • 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)

[3.0.0]

    • 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

[2.0.1]

  • Add option to use a locally cached Google analytics.js (default off)
  • Add cache_hours option to set caching period (default: 48 hours)

[2.0.0]

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 mousedown event to fire tracking (except for touchscreen devices) to bypass limitations in Internet Explorer which ignores click events with Ctrl|Alt|Meta-click

[1.1.0]

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).

[1.0.0]

  • Adopt semantic versioning releases
  • Release versions