All Collections
Reporting
Google Analytics integration
Google Analytics integration

This article will explain how to send and view data from your Barilliance campaigns in Google Analytics (GA).

Joel Lang avatar
Written by Joel Lang
Updated over a week ago

Barilliance campaigns roughly fall into 3 distinct types:

  • Email campaigns (this includes triggered emails and Retention emails)

  • Onsite personalization rules (popup, message bars etc…)

  • Product recommendations

Email Campaigns

Email campaigns are tracked with UTM parameters. For each email rule in the panel you define the parameters that will be used for tracking and Barilliance will add them to all links in the email. When the visitor opens your email and clicks on one of the links the landing page URL will include the tracking parameters you configured. The parameters you should keep in mind are:

Source - identifies from where the traffic came. Generally you'll want this to be "barilliance"

Medium - identifies the medium used for generating the traffic, for email campaigns you'll want to use "email"

Campaign - identifies the specific campaign for example "cart abandonment 1" for the first email in your cart abandonment campaign

Example for a URL with UTM tracking parameters:

GA will read those parameters and make the data available to you under certain reports, the most useful being the traffic acquisition report. Here you can see you see exactly how many visitors came your website from a certain campaign or from overall from Barilliance sent emails.

UTM tracking is designed for tracking traffic that is coming from outside the website such as links from a 3rd party site or links in email campaigns. It shouldn’t be added to the site’s inner links. 

Barilliance rules like cart abandonment emails and email recommendations have a dedicated option for specifying tracking parameters.

If you’re not sure how to add tracking parameters Google provides a URL Builder tool

About Event Tracking

Event tracking in Google Analytics is designed to track events or user interactions that occur on the website, for example clicking play on a video or a popup getting displayed. Barilliance has built-in support for automated reporting when onsite personalization rules are triggered or when product recommendations are clicked.

For each event you can optionally report:

Category: a general name to group related events. For example you can group all Product events under "Barilliance recommendations" and all onsite personalization events under "Barilliance personalization"

Action: names the actual interaction or event you want measure, for example a recommendations click or a popup display.

Label: Use for providing additional information about the action, for example the name of the rule that triggered it.

non-interaction - Is meant to signify if the event is interactive ( the difference between viewing a page and clicking on a recommendation) and is used in bounce calculations by GA. Typically this will set to Yes when reporting triggered rules and to No when reporting recommendation clicks

Event data sent to GA can be found under the Behavior menu:

Onsite Personalization

Google Analytics tracking option is available under the Testing and Optimization section of the rule:

When the rule is triggered Barilliance will automatically send an event to GA using the setting you configured.

Google Analytics Tracker ID - your tracker ID identifies your site (also know as a property) in analytics. It is a string that starts with the letters UA (e.g UA-4459279-4). You can find this number in your GA account. Depending on the particular way analytics in configured on your site it may be possible to send the event data without specifying a tracker ID however it's not guaranteed to work so we recommend to always specify it.

Category, action , label, Noninteraction - here you can customize the specific event data that will be sent (as explained in the previous section).

Use variation name/control group as label - this option will automatically send the name of the rule as the Label parameter. If you are using A/B testing to test the rule against other variations or a control group the label will also include that information. This allows to easily compare the performance between variations and/or the control group in GA.

Product Recommendations

Event data for product recommendations is configured in the Tracking tab of each recommendations rule. An event will be triggered after a click on a recommendation sending to Analytics the Category/Action/Label defined in the rule.

The default configuration sets as Action the name of the recommendations rule and the name of the product that was clicked is set as the Label . You can customize this

by clicking on the available tags or typing free text into the box.

Triggering an event each time a product recommendations rule is viewed

Just like Onsite Personalization rules product recommendations can use the testing and optimization section to trigger an event each time the rule is triggered. This can be used to track widget views in Google Analytics.

Note: if you have recommendations but no product recommendation rules in the panel then your implementation is likely from before 2020 and earlier and you'll need to contact Barilliance support to change the default tracking configuration.

Did this answer your question?