Dev GuideAPI Reference
Dev GuideAPI ReferenceUser GuideProduct feedbackGitHubNuGetDev CommunitySubmit a ticketLog In

Create segments in Google Analytics 4

Use Google Analytics 4 (GA4) to capture and analyze traffic data across your websites and applications.

You must set up an integration between Optimizely Web Experimentation and GA4 to create segments for Optimizely Web Experimentation within GA4. For information on setting up this integration, see Integrate Google Analytics 4 (GA4). After your integration between Optimizely Web Experimentation and GA4 is set up, you can create segments for Optimizely Web Experimentation within GA4.

📘

Note

It can take up to 48 hours before values become available in Google Analytics 4 (GA4) so that you can create dimensions or segments with them.

Create an exploration and add segments

  1. Go to Explore and select an exploration type (for example, Free form).
  1. Go to Variables and click the Add icon next to Segments.
  2. Click User segment under Create a custom segment.
  1. Enter the name of the segment (specifying the specific experiment/variant for which you are creating this segment).
  2. Expand the Add new condition drop-down list and click Experience - variant ID.
  1. Click Add Filter.
  2. Select contains and enter the experiment or variant ID for which you want to create the segment.
  3. Check the box for At any point in time.
  1. Click Save and Apply.