Create segments in Google Analytics

After turning on the Google Analytics integration for your experience you will have to create a segment in Google Analytics to use the data.

INFO: To correctly configure the segment, you will need the Event action Id and Event label Id for the Qubit experience you wish to create a segment for. You will find this information in the Google Analytics integration card for your experience.

INFO: To help you easily identify the experience control and variation in third-party integrations such as GA, we provide a method, via your prescript, to send a custom label rather than an Id. See our example for details.

For this article, we will use the following example:

ga event id

Creating a segment

You can create a segment for the experience control and one or more of the variations.

Step 1

After logging into the Google Analytics account for your site, select Audience and then Overview from the side menu.

Step 2

Select Add Segment and then New Segment

Adding conditions

Step 1

Enter a name for your segment. Now select Conditions from Advanced and change the filter to Users:

change filter

Step 2

Select the first combo box and enter Event Action:

event action

Step 3

Select the Event Action dimension and enter the Event action Id for your Qubit experience in the field provided

For our example experience, we would enter 89861, as shown in the following example:

event action

Step 4

Select And and enter Event Label:

event label

Select the Event Label dimension and enter the Event label Id for your Qubit experience in the field provided.

For our example experience, we would enter 501310, as shown in the following example:


Step 5

Select Save to finish


Why do we sometimes see very different Conversion Rates between the Qubit dashboard and Google Analytics?

Qubit treats a conversion after a visitor has been exposed to an experience as one influenced by that experience, whether it is immediate or in a later session. So for comparisons, the corresponding Google Analytics (GA) segments must be user-based, not session-based.

The Qubit dashboard bases the Conversion Rate (CR) on the proportion of visitors who subsequently convert. GA has both that CR measure and a rather different ecommerce Conversion Rate, which counts the proportion of sessions in which there is a conversion.

Last updated: January 2023
Did you find this article useful?