Google Analytics 4 integration

This post is also available in: Czech Polish

In the following article, we will look at how to integrate GA4 into Samba.ai

Samba attribution model

Instead of Google Analytics, you can use the more accurate Samba attribution model.

What is Google Analytics 4?

Get to know GA4 in detail, find out how it differs from Universal Analytics and what benefits it brings to you. You can find the article here.

Introduction to Google Analytics

Google Analytics is able to track and provide you with a variety of data, including the following:

  • Visits – where your customers come from (geo-based and web-based), how much time they’re spending on your e-shop/site, which page they’re leaving from, etc.
  • Metrics such as conversion rate and CTR
  • Ad campaign analysis (via UTM codes)
  • Customer segmentation
  • Integration with AdWords

Integration

In order to monitor the performance of individual campaigns in Samba in terms of conversion rate (number of orders) and generated sales, you need to connect your Google Analytics with Samba in E-shop SettingsIntegrationGoogle Analytics.

Without this connection, we will only be able to analyse performance in terms of the number of impressions and clicks through our advertising messages. Additionally, you will be able to have all the metrics right in the palm of your hand right in the main Samba dashboard. The linking is provided by the so-called UTM parameters that Samba inserts into each link in the email template.

What we need to connect

  • The Property ID you use in Google Analytics
  • Add Samba user Browsing rights in Google Analytics

Property ID

This ID can be found directly in your Google Analytics administration. Open the Admin section in the left side menu.

Then, in the Property section, open the Service Settings tab and copy the Property ID in the upper right corner.

In Samba settings

Now go back to your Samba.ai account integration settings. In the Google Analytics integration section, select Change type of integration.

In the selection, choose Google Analytics 4 and hit Save.

Now, enter your Property ID in the appropriate row and press Save Configuration.

Samba will automatically generate an email address which you now need to copy into the Google Analytics administration to create a user.

Go back to the Google Analytics administration and within the Admin section, go to the Account subsection and open the  Account Access Management tab.

Here, use + to add access for the new user.

Enter the email address you copied from Samba and select Viewer rights.

Save the new user and you are all set.

Prefixes for Google Analytics

With Samba you can check easily different metrics referring to your performance directly on Main Dashboard. All these data are provided by Google Analytics which we implement in your campaigns (in case you already do not have access to Google Analytics).

The interface between Samba and Google Analytics is ensured by campaign UTM code (utm_campaign). Take a look at our detailed article about UTM parameters.

Each campaign includes a different UTM (it can be a newsletter title, promoted product title or anything else). UTM ensures that your campaign can be found in Google Analytics and that all important and relevant data can be transferred directly to Samba reports.

Samba automatically adds a specific prefix to each utm_campaign in order to distinguish between individual newsletter types:

Type of messagePrefixExample
One-off push notificationyot_push_yot_push_SuperSale
One-off email campaign (including autopilot and external campaign)yot_email_yot_email_SuperSale
Trigger "Repeated orders"yot_trigger_fmcg_yot_trigger_fmcg_SuperSale
Trigger "Shopping Intention"yot_trigger_zsv_yot_trigger_zsv_SuperSale
Trigger "Abandoned Cart"yot_trigger_cart_yot_trigger_cart_SuperSale
API Triggeryot_trigger_api_yot_trigger_api_SuperSale
Double opt-in emailyot_popup_optin_yot_popup_optin_SuperSale
Confirmation emailyot_popup_success_yot_popup_success_SuperSale
Flow campaign - pushyot_flow_push_yot_flow_push_SuperSale
Flow campaign - emailyot_flow_mail_yot_flow_mail_SuperSale
Testing emailyot_test_yot_test_SuperSale

This post is also available in: Czech Polish

Updated on January 24, 2024

Was this article helpful?

Related Articles