Google Analytics 4 Server Events
This Drupal module allows you to send events to Google Analytics 4 directly from the backend. It provides seamless integration with GA4, enabling you to track user interactions and other relevant events without relying solely on frontend tracking. By sending events from the backend, you can ensure more accurate and reliable data collection, even when users have disabled JavaScript or are using ad blockers. For now, there implemented only "Purchase" event after placed order (Commerce module).
Post-Installation
You need to specify "Measurement ID" and "API Secret" to start sending purchase events from server to Google Analytics 4.
- The Measurement ID is a unique identifier that corresponds to the web stream that you want to send data to. You can find this ID in the GA4 interface under Admin > Data Streams > Web stream > Measurement ID.
- The API Secret generated in the Google Analytics UI. To create a new secret, navigate to Admin > Data Streams > choose your stream > Measurement Protocol > Create.
Supported Events
- Purchase event
Extra Links
Additional info
Module use Order Number (and Order ID as fallback) as transaction ID.
Depends on
Dependencies of the latest stable release
No dependencies recorded for this project.
Required by
Tracked projects that depend on this one
No tracked projects depend on this one yet.