Integrate GA4 (Shopify)

This guide is intended for merchants who have connected GA4 with their Shopify store by using the Google & Youtube sales channel for Shopify. If you've configured GA4 for your store with Google Tag Manager or use Elevar to manage your data layer, follow those guides instead.

Using Littledata for your GA4 Shopify connection? Follow the steps below - no additional set up is required.

Not using Littledata? Shoplift recommends it over the Google & YouTube sales channel. Learn more

Prerequisites

Before integrating GA4 with Shoplift, make sure you have the following:

  • A Google Analytics 4 property set up for your store via the Google & YouTube sales channel for Shopify

  • Access to this Google Analytics property to authorize the connection in Shoplift

  • A Google Tag Manager (GTM) instance to manage tags, triggers, and variables (to define the event to be captured by Google Analytics)

  • The ability to create Audiences in GA4 via the Google Account you use to authorize the connection

Set up the integration

Configuring the integration (takes 2 minutes)

  1. In Shoplift, navigate to Settings and then click the Integrations tab.

  2. Click Connect to open up an authorization window for your Google account, and select the Google account that has access to your GA property from the list.

  3. On the next screen, Shoplift will request permissions to Edit Google Analytics management entities. Click Allow. These permissions will allow Shoplift to create Google Analytics audiences for your tests on your behalf.

  4. Once you've authorized the connection, you will be redirected back to Shoplift, and an account selection dropdown will appear. Select the Google Analytics account for your store from the list.

  5. After selecting an account, a property selection dropdown will appear. Select the property for your store. You can confirm it is the correct property by referencing the Measurement ID in the dropdown, next to each property name (this will be a string of characters, like G-XXXXXXXXXX).

  1. Once you've selected your property, click Confirm. The integration will toggle on, and your Google Analytics 4 account and Shoplift are now integrated.

Analyzing data with custom explorations

If you want to see more detailed information about your Shoplift audiences, including custom dimension and metric breakouts, you can create a custom exploration and create custom segments for visitors to each variant experience.

If you want to analyze your data in GA4 using Explorations, you need to register the Shoplift exp_variant_string parameter as a custom event-scoped dimension in GA4. Without this dimension registered, events may come into GA with (not set) values. Instructions on how to do so are below.

Register the parameter in GA4

  1. To make the exp_variant_string parameter available in explorations, you need to register it as a custom dimension.

  2. In GA, go to Admin, then click Custom definitions. You will see a list of your Custom definitions.

Click Create custom dimension. Name the custom dimension exp_variant_string and ensure the Scope is set to Event. Then select the exp_variant_string parameter from the Event parameter dropdown.

If the parameter has already been registered, then it won't appear in the dropdown, and you're ready to move on to the next step.

Now, when you launch new tests, Shoplift will now automatically creating audiences for these tests in GA4 and send associated visitor events as they occur.

Last updated

Was this helpful?