To enrich your Google Analytics (GA) reporting with additional visitor and account-level insights, you can send Site Customization events to GA.
Once the events are available in GA, you can analyze personalized experiences using additional dimensions, such as Company Name, alongside standard metrics and reporting views. This allows you to to gain deeper insight into how visitors interact with your customized site experiences.
See Understanding Event Tracking in Google Analytics for Site Customization.
Prerequisites
- You must have a license for Personalization.
- You must have a Google Analytics account.
Create a Tracking Event
-
From the left navigation bar, go to
Personalization > Site Customization.
-
Click the GA Tracking tab and click Create a new tracking event.
Tip: If you have existing Google Analytics tracking events, See Convert a Tracking Event to migrate them to Google Analytics 4 (GA4). -
Enter the Event name, Html selector, Event type, Parameter, and Parameter value.
Tip: To add additional parameters for an event, click Add parameter. You can add up to 25 parameters for an event. -
Use the following hierarchy for personalization event tracking:
1. Event Name
2. Event Type
3. Parameter
4. Parameter Value
Convert a Tracking Event
If you have existing Google Analytics tracking events, you can convert them to GA4-compatible tracking events. During the conversion process, Demandbase maps existing fields to the corresponding GA4 fields.
Existing Tracking Event Field |
New Tracking Event Field |
|---|---|
| Event label | Event name |
| Element selector | Html selector |
| Event type | Event type |
- From the left navigation bar, go to
Personalization > Site Customization.
- Click the Tracking tab and click Convert tracking to GA4.
Demandbase automatically populates the Event name, Html selector, and Event type fields using values from the existing tracking event. -
Enter the Parameter and Parameter Value for the new tracking event.
Tip: To add additional parameters for an event, click Add parameter. You can add up to 25 parameters for an event. -
Use the following hierarchy for personalization event tracking:
1. Event Name
2. Event Type
3. Parameter
4. Parameter Value
Event Hierarchy
The following sections describe each component of the event hierarchy. See Google's article About events.
Event Name
The name used to group related events and parameters. Typically, the same event name is reused across related personalized elements.
Example: Homepage_Auto
Html Selector
The HTML element identifier associated with the personalized content. Copy and paste the element ID from the Visual tab in the Experience Builder.
Event Type
Select one of the following event types:
-
View: Triggers an event when a visitor views the personalized experience.
Tip: We recommend adding a View event type for every experience. - Click: Triggers an event when a visitor interacts with a personalized element, such as a CTA button.
- When using a Click event, specify the HTML ID of the personalized element. You can find this value on the Advanced tab of the Experience Builder.
Important: The Event Type configured in Demandbase does not appear as a metric or value in Google Analytics.
Parameter
The event parameter you want to track. You can add up to 25 parameters per event.
Example: page_location (page URL)
Parameter Value
The value associated with the parameter.
Example: Click CTA Button
Tip: Event Name, Event Type, Parameter, and Parameter Value are customizable fields that Google Analytics captures when the event is sent. These fields allow you to segment, filter, and analyze event data in your reports.
View Event Data in Google Analytics
To view event tracking data in GA4:
- In Google Analytics, select Reports.
- Go to Engagement > Events.
The Event Name column displays the events configured in Demandbase.
From the Events report, you can:
- Analyze event performance using standard GA dimensions and metrics.
- Pivot on primary dimensions.
- Add secondary dimensions, such as Company Name, for deeper analysis.
Important: You may also see Demandbase API calls in your reports. These are standard API requests and are not related to event tracking.
Google Analytics does not display event data immediately. Summary metrics typically appear first, while detailed event data becomes available after Google Analytics completes processing.