Skip to main content
All CollectionsOptimize
Google Analytics
Google Analytics

Analyzing the impact of personalized content being shown is important to optimize your ROI.

Updated over 4 months ago

One way you can perform the analysis of the impact of your content is by configuring Fresh Relevance to send event data to Google Analytics.

Learn more in Google’s documentation.

Within Google Analytics, you can then review the Event data against other data held by Google Analytics.

For example, you could:

  • Create a segment of those that saw a personalized item and compare the results to those that didn't.

  • Review device type to see if that impacts the success of personalized content.

  • Review what visitors went on to do after seeing personalized content.


Set up Google Analytics Events

You must have the Optimization module to be able to activate the sending of Events to Google Analytics. To discuss, contact your Account Manager.

Google Analytics 4 allows multiple parameters to be sent with each event. You can use this in Fresh Relevance to attach relevant values from the event, for example, SmartBlock, Slot or Experience ID, to be used as a dimension for segmentation.

Each type of Event can be enabled individually, and up to five parameters can be supplied.

To activate Event sending to Google Analytics:

  1. Expand the User menu and go to Settings > Website Settings.

  2. Select Google Analytics Configuration.

  3. Select the Google Analytics 4 (gtag) Integration Enabled checkbox, then select which events you want to be sent and how they should be configured.

Learn more in the section Events.


Events

Supported events are:

Event Name

Description

Event Action (Default)

Event Value

SmartBlock Inserted

Recorded when a SmartBlock is inserted into the page.

Depending on the type of SmartBlock, and the Slot options, this likely also means the content is shown to the user.

Inserted

1

SmartBlock Clicked

Recorded when a link within a SmartBlock is clicked.

Clicked

Index of the item clicked if a multi-item SmartBlock, otherwise 1

Data Capture Shown

Recorded when a Data Capture SmartBlock is shown.

For example, with an exit-intent data capture SmartBlock, this event fires only for users that show the exit intent.

Data Capture Shown

1

Data Capture Submitted

Recorded when a Data Capture SmartBlock is submitted by the user.

Data Capture Submitted

1

Event category

There is a default suggested event_category key and value, which will default to FreshRelevance. This can be set on each event, or removed if not required.

Parameter values

The values of the parameters can use the following variables to include contextual data:

Variable

Description

${experienceID}

ID of the experience for the user, or none.

${slotID}

ID of the Slot that inserted the SmartBlock.

${smartblockID}

ID of the SmartBlock, or none.

For example, if no SmartBlock is chosen by the rules.

${smartblockName}

Name of the SmartBlock, or none.

For example, if no SmartBlock is chosen by the rules.

${ruleID}

ID of the SmartBlock, or none.

For example, if no SmartBlock is chosen by the rules.

${value}

The value of the event.

1 for most events, but index of the item clicked for SmartBlock Clicked.


Configure Google Analytics

Once you have configured GA4 in Fresh Relevance, you must make some changes in your GA4 property:

  1. Under Configure, select Custom Dimensions.

  2. Create a custom dimension for each parameter key that you've configured in Fresh Relevance - setting the Event Parameter value to the matching key in Fresh Relevance.

It may take some time for Google Analytics to display data after configuring. You can then import your custom dimensions and use them in the Exploration area.


Add the Email ID to link URLs in your Dotdigital emails

Before you start

In Fresh Relevance, expand the User menu and go to Settings > Triggers and Messaging integrations > Email Campaign-based Identification and enter your Dotdigital API credentials.


Now, whenever a contact clicks through from one of your marketing emails to your ecommerce site, there is a unique dm_i code for the shopper included in the URL. The Fresh Relevance script on your page grabs this code to identify the new arrival. This happens asynchronously so it doesn't slow your site.

Any domains on your tracking exclusion list in Dotdigital won’t have the parameter we need in order to lookup an email address, which reduces your identification rate. If you’re unsure whether you have any domains on your tracking exclusion list, contact Dotdigital Support.

Did this answer your question?