Don’t let security updates keep you up at night. Stay ahead of potential threats with an added layer of Drupal security.
By budda on , updated
Adds the Google Analytics web statistics tracking system to your website.
The module allows you to add the following statistics features to your site:
- Single/multi/cross domain tracking
- Selectively track/exclude certain users, roles and pages
- Monitor what type of links are tracked (downloads, outgoing and mailto)
- Monitor what files are downloaded from your pages
- Custom dimensions and metrics support with tokens
- Custom code snippets
- Site Search support
- AdSense support
- Demographics and Interests support (formerly known as DoubleClick remarketing support)
- Anonymize visitors IP address
- DoNotTrack support (non-cached content only)
- Drupal messages tracking
- Modal dialog tracking (Colorbox)
- Access denied (403) and Page not found (404) tracking
- Cache the Google Analytics code on your local server for improved page loading times
- Enhanced Link Attribution support
- User ID tracking across devices
- Changing URL fragments can be tracked as pageviews
- Debug mode with analytics_debug.js
Version specific features
- Universal Analytics (UA) support: 6.x-4.x, 7.x-2.x, 8.x-2.x
- Global Site Tag (gtag.js) support: 8.x-3.x
Other related modules
- Google Analytics Reports provides graphical reporting of your site's tracking data. Graphical reports include a dashboard widget for admins, a small path-based report in blocks, and a full path-based report.
Supporting organizations:
gtag 4 Development
Gtag 4 Development
Project information
- Module categories: Statistics, Third-party Integration
299,632 sites report using this module
Drupal 9 is here!
Google Analytics 8.x-2.5+ supports Drupal 9.
Stable releases for this project are covered by the security advisory policy.
Look for the shield icon below.
Downloads
4.0.0-alpha1
Requires Drupal: ^8.9 || ^9
⬇ Download tar.gz (52.24 KB) | zip (86.21 KB)
Development version: 4.x-dev updated 12 Oct 2021 at 05:40 UTC
- Testing result: PHP 7.4 & MySQL 5.7, D9.2.0 10 pass, 4 fail all results
8.x-3.1
Requires Drupal: ^8.8.6 || ^9
✓ Recommended by the project’s maintainer.
⬇ Download tar.gz (44.98 KB) | zip (68.06 KB)
Development version: 8.x-3.x-dev updated 4 Jun 2020 at 18:57 UTC
- Testing result: PHP 7.3 & MySQL 5.7, D9.0 13 pass all results
8.x-2.5
Requires Drupal: ^8.8.6 || ^9
⬇ Download tar.gz (44.21 KB) | zip (66.6 KB)
Development version: 8.x-2.x-dev updated 30 Jun 2020 at 12:12 UTC
- Testing result: PHP 7.3 & MySQL 5.7, D9.1 13 pass all results
7.x-2.6
Requires Drupal: 7.x
✓ Recommended by the project’s maintainer.
⬇ Download tar.gz (41.27 KB) | zip (48.3 KB)
Development version: 7.x-2.x-dev updated 4 Nov 2018 at 14:23 UTC
- Testing result: PHP 7.1 & MySQL 5.5, D7 18 pass all results











