Install
Works with Drupal: ^8.9 || ^9Using Composer to manage Drupal site dependencies
Alternative installation files
Release notes
This is the first full release of the Google Analytics 4 module, supporting the next generation of Google Analytics:
https://support.google.com/analytics/answer/10089681?hl=en
While this 4.0.0 release is 'stable', we will wait until Jan 2022 to make it recommended so site developers can test it more widely and give time for sites to migrate from 3.x to 4.x.
What is new in this release?
- Updated to support newest gtag4 standards
- New interface for Metrics and Dimensions, which are now custom user parameters in 4.x
- Can run multiple accounts within the same settings interface
- Backwards compatible with Universal Analytics and analytics.js (UA- accounts)
- Rewritten into an event handler system. Developers can create new events within code and have them injected into Google analytics
With the 4.x release, all Drupal customers should be able to update both from 8.x-3.x and 8.x-2.x versions of the module. The only reason to continue using the 2.x version of the module is if you implemented custom javascript or code that depends on the deprecated analytics.js version of Google Analytics.