By Jerome Perrin (yogooo)

Insert tracking code for Google Analytics and/or Google Universal Analytics (analytics.js / ga.js). By default it will ignore traffic from users logged into the manager. Every context in your website can be excluded on demand, wether or not users are logged in.

The tracking codes templates can be overridden with your own chunks. Name them "ua_tracking" and "ga_tracking".

- Supported properties for Google Universal Analytics (analytics.js) : webPropertyID, cookieDomain, cookiePath, forceSSL, anonymizeIP, pageview's page path as well as Enhanced Link Attribution and Advertising Display features.- Supported properties for Google Analytics (ga.js) : _setAccount, _trackPageview, _setDomainName, _setCookiePath parameters as well as Enhanced Link Attribution.

Official documentation: http://rtfm.modx.com/extras/revo/analytics

Jerome Perrin

New in Analytics 2.0.1

Changelog for Analytics.Analytics 2.0.1-pl (May 28, 2014)====================================- Fix issue #11: closing curly bracket should be regular bracket in analytics.class.php(179)Analytics 2.0.0-pl (May 4, 2014)====================================TLDR: universal analytics; multiple contexts filtering; templates override; Display Advertising features      check you code works as expected after updating- Deprecation: system settings are deprecated in favor of properties sets.- Issue #9: Add support for Display Advertising features (displayfeatures property) with Universal Analytics            https://support.google.com/analytics/answer/3450482- Issue #8: Add support for Google Universal Analytics (analytics.js)- ga.js is still supported but not recommended, do migrate!            https://developers.google.com/analytics/devguides/collection/upgrade/            https://developers.google.com/analytics/devguides/collection/analyticsjs/- New: set a list of contexts for which to exclude logged in users from being tracked (defaults to 'mgr')- New: set a list of contexts for which to exclude all tracking- New: overwrite the default tracking codes with your own chunks. Name them "uatracking" and "gatracking".- New: English and French localization- Updated: documentationAnalytics 1.1.1-rc1 (June 9, 2013)====================================- Update: squeeze even more bits outAnalytics 1.1.0-rc1 (March 23, 2013)====================================- Issue #5: Add Enhanced Link Attribution. Enable it from your GA account :            https://support.google.com/analytics/answer/2558867?hl=en&topic=2558810&ctx=topicAnalytics 1.0.0-rc1 (February 6, 2012)======================================- New: extra renamed- New: support for _trackPageview opt. urlGoogle Analytics 1.0.0-beta3 (February 5, 2012)===============================================- Fix: retriving properties from System Settings on empty snippet properties



May 28, 2014
Supported Versions
2.1 – 2.4