(Deprecated) Using Google Analytics 4.x
Guide on setting up Google Analytics 4.x on Drupal
Still on Drupal 7? Security support for Drupal 7 ended on 5 January 2025. Please visit our Drupal 7 End of Life resources page to review all of your options.For webmasters to make use of Google Analytics, historically you would normally need to insert some Javascript containing the unique Google Analytics measurement id or tracking number (in the format G-XXXXXXXX or UA-XXXXXX-X) into the header or footer of every page.
Users of the previous Google Analytics module are strongly encouraged to upgrade to the Google Tag module. The 2.0.x branch supports Google Tag and Google Tag Manager. Users of Google Analytics should be using the 2.x version of this module.
Drupal provides, via the Google Tag module, an automated way to place any Google Tag ID on your website to connect it to Google's products and services.
Guide on setting up Google Analytics 4.x on Drupal
Adds the Google Analytics web statistics tracking system to your website.
The module allows you to add the following statistics features to your site:
Drupal is a registered trademark of Dries Buytaert.


