Skip to main content
Google Analytics 4 - Segment Syncronisation

How to start using your Nosto Segments in Google Analytics 4

Katharina Andres avatar
Written by Katharina Andres
Updated this week

Introduction

Nosto allows you to synchronize segments with GA4, enabling you to gain valuable insights into your e-commerce data. This user documentation will guide you through the process of synchronizing Nosto segments.

Follow the steps below to set up this integration.

Before you begin, ensure that you have the necessary access permissions for your Google Analytics account.

Nosto Admin Setup

  1. Log in to your Nosto account.

  2. In the Nosto dashboard, navigate to the "Audience Insights & Builder" section.

  3. Identify the segment that you want to integrate with GA4 and click on it.

  4. Open the segment edit view by clicking on the "Edit segment" button within the segment's report.

  5. Find the "Google Analytics" section and enable the toggle for "Synchronize this segment."

  6. Copy the segment ID, as you will need it later.

Google Analytics Setup

Log in to your Google Analytics 4 (GA4) account.

Ensure that you have selected the appropriate property and view where you want to receive Nosto segment data.

  1. Go to "Explore" and create a new exploration.

  2. In the "Segments" area, click the "+" button to create a new segment.

  3. Select either "Session segment" or "Event segment", depending on your needs.

  4. Enter a name and description for your segment. To make it easy to identify, consider using the same name as you have given for the Segment in Nosto as well.

  5. Add the following condition to your segment:

    1. Event > nostoSegment

    2. Parameter > Custom > segment_id

    3. Condition > Exactly Matches (=)

  6. Value > Enter the Nosto segment ID which you copied in step 6 of “Nosto Admin Setup”

  7. Optionally, you can choose to build an audience from this segment by enabling the "Build an audience" checkbox. If you opt for this, review the membership duration before proceeding.

  8. Click "Save and Apply" to save your segment configuration.

Setup Screenshots

By following these steps, you will successfully integrate Nosto segments with Google Analytics 4, allowing you to analyze and gain insights into your e-commerce data. If you encounter any issues or need further assistance, contact Nosto Support for help.

Integrating using GTM (Google Tag Manager)

To be able to consume events, you would need to configure following in your GTM container:

  1. Create Data Layer Variable for segment_id in GTM:

    1. Go to Variables:
      • Navigate to Variables > New > Variable Configuration > Data Layer Variable.

    2. Set Up the Variable:
      • Variable Name: Enter the name segment_id
      • Save the variable with a descriptive name, like DLV - segment_id.

  2. Create Custom Event Trigger in GTM:

    1. Create a New Trigger:
      • Navigate to Triggers > New > Trigger Configuration > Custom Event.

    2. Configure the Trigger:
      • Event Name: nostoSegment.
      • Leave other fields (e.g., “This trigger fires on”) as defaults unless you need to add conditions.
      • Save the trigger with a descriptive name, like Custom Event - nostoSegment

  3. Create GA4 Event Tag
    To send the custom event to GA4:

    1. Go to Tags:
      • Navigate to Tags > New > Tag Configuration > Google Analytics: GA4 Event.

    2. Set Up the Tag:
      • Tag Configuration:
      • Event Name: nostoSegment.
      • Event Parameters: Add custom parameter segment_id that was created in 1:
      • Parameter Name: segment_id.
      • Value: Use a Data Layer Variable to retrieve the value {{DLV - segment_id}}.

    3. Set the GA4 measurement id, I think it is G-667ED9JQ2M but just in case - how to find measurement id.

    4. Attach the Trigger:
      • Assign the Custom Event Trigger (Custom Event - nostoSegment) you created earlier.

    5. Save and Publish:
      • Save your tag and publish the GTM container.

Once this is done, you should be able to see segment events in GA4.

Did this answer your question?