Drupal is a registered trademark of Dries Buytaert
drupal 11.3.7 Update released for Drupal core (11.3.7)! drupal 11.2.11 Update released for Drupal core (11.2.11)! drupal 10.6.7 Update released for Drupal core (10.6.7)! drupal 10.5.9 Update released for Drupal core (10.5.9)! cms 2.1.1 Update released for Drupal core (2.1.1)! drupal 11.3.6 Update released for Drupal core (11.3.6)! drupal 10.6.6 Update released for Drupal core (10.6.6)! cms 2.1.0 Update released for Drupal core (2.1.0)! bootstrap 8.x-3.40 Minor update available for theme bootstrap (8.x-3.40). menu_link_attributes 8.x-1.7 Minor update available for module menu_link_attributes (8.x-1.7). eca 3.1.1 Minor update available for module eca (3.1.1). layout_paragraphs 2.1.3 Minor update available for module layout_paragraphs (2.1.3). ai 1.3.3 Minor update available for module ai (1.3.3). ai 1.2.14 Minor update available for module ai (1.2.14). node_revision_delete 2.0.3 Minor update available for module node_revision_delete (2.0.3). moderated_content_bulk_publish 2.0.52 Minor update available for module moderated_content_bulk_publish (2.0.52). klaro 3.0.10 Minor update available for module klaro (3.0.10). klaro 3.0.9 Minor update available for module klaro (3.0.9). layout_paragraphs 2.1.2 Minor update available for module layout_paragraphs (2.1.2). geofield_map 11.1.8 Minor update available for module geofield_map (11.1.8).

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.

Activity

Total releases
1
First release
Jan 2025
Latest release
1 year ago
Release cadence
Stability
100% stable

Releases

Version Type Release date
4.0.8 Stable Jan 23, 2025