Drupal is a registered trademark of Dries Buytaert
Protected Pages 3.0.0 Major update available for module protected_pages (3.0.0). Commerce Core 3.3.8 Minor update available for module commerce (3.3.8). Search API HTML Element Filter 1.0.7 Minor update available for module search_api_html_element_filter (1.0.7). Layout Builder Reorder 2.0.1 Minor update available for module layout_builder_reorder (2.0.1). Ban 1.1.0 Minor update available for module ban (1.1.0). Field Formatter Range 2.0.0 Major update available for module field_formatter_range (2.0.0). Field Formatter Range 8.x-1.8 Minor update available for module field_formatter_range (8.x-1.8). Varbase Media Header 9.2.1 Minor update available for module varbase_media_header (9.2.1). Search API Solr 4.3.11 Module search_api_solr updated after 14 months of inactivity (4.3.11). Provus Mega Menu Module provus_mega_menu crossed 1,000 active installs.

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.

Activity

Total releases
1
First release
Jan 2025
Latest release
1 year ago
Releases (12 mo)
0 ▼ from 1
Maintenance
Dormant

Releases

Version Type Release date
4.0.8 Stable Jan 23, 2025