CiviCRM DataLayer

Development Status
Stable
Active Installs
Maintainers

A CiviCRM extension that pushes GA4-compatible dataLayer events at every step of Contribution Pages and Event Registration forms, enabling Google Analytics 4 (GA4) e-commerce tracking via Google Tag Manager (GTM).

Features

  • Automatically injects the Google Tag Manager snippet on all tracked CiviCRM pages
  • Pushes standard GA4 e-commerce events for both Contribution Pages and Event Registrations
  • Three-level settings hierarchy: global → entity-type → per-page/event overrides
  • Dedicated DataLayer tab in each Contribution Page and Event management form
  • Configurable JavaScript variable name (default: dataLayer)
  • Suppress pushes for test-mode transactions
  • Debug mode logs each push to the browser console
  • All front-end hooks are wrapped in try/catch — a failure logs a warning and never breaks the page
Screenshot