Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

Google Analytics Counter

Security covered Under active development 492 sites

This module fetches page view data from Google Analytics and stores it in Drupal, allowing you to display Google Analytics page views directly on your site. It can be used to create custom fields, blocks, or text tokens that show the view counts, ensuring they match the data in Google Analytics. This makes the view counts available for use in Drupal displays, views, or even for search functionality.

The Google Analytics Counter module is a scalable, lightweight page view counter which stores data collected by Google Analytics API in Drupal. The goal of the module is for the pageviews in Drupal to match the Pageviews in Google Analytics 4.

This module does its work during cron.

The module's features are:

  • Creation of a custom field which contains the Pageviews from Google Analytics API.
    • Once cron has populated the custom field, it can be used like any other field. This makes the Google Analytics Counter field usable for Drupal views or inclusive on Drupal page displays.
    • Views can also be based directly on the Google Analytics Counter storage tables, but using the custom field makes much more sense.
  • Creates a customizable block which also contains the Pageviews from Google Analytics API.
  • A text filter which makes a token available. The token contains the Pageviews from Google Analytics API.
  • The data saved in Drupal can also be used for other things, like search.

This module is suitable for large and high-traffic sites.

Installing the Google Analytics Counter Module

Please check online documentation.

Disclaimer

Drupal 9, 10 and 11 port was created by Róbert Kasza and EGM s.r.o.

The Drupal 8 port of this module was created by Eric Sod for Memorial Sloan Kettering Cancer Center.

The Drupal 7 version of the module was developed by Tomáš Fülöpp / Vacilando. Development of this branch was partly sponsored by Australian Policy Online (APO) at Swinburne University of Technology.

Drupal 9–11

Ask your assistant about Google Analytics Counter

Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works

Depends on

Dependencies of the latest stable release

  • node Drupal core

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
18
Tracked since
Jun 2023
Latest release
4 days ago
Releases (12 mo)
2 ▲ from 1
Maintenance
Active

Release Timeline

Releases

Version Type Core PHP Release date
4.0.10 Stable 9–11 Oct 11, 2026
4.0.9 Stable 9–11 Oct 7, 2026
4.0.8 Stable 9–11 Jan 23, 2025
4.0.7 Stable 9–11 Jun 1, 2024
4.0.6 Stable 9–10 Jun 1, 2024
4.0.5 Stable 9–10 Apr 9, 2024
4.0.4 Stable 9–10 Jan 12, 2024
4.0.3 Stable 9–10 Oct 23, 2023
4.0.2 Stable 9–10 Sep 18, 2023
4.0.1 Stable 9–10 Aug 17, 2023