The availability of features may depend on your plan type. Contact your Customer Success Manager if you have any questions.

Dev GuideAPI Reference
Dev GuideAPI ReferenceUser GuideLegal TermsGitHubDev CommunityOptimizely AcademySubmit a ticketLog In
Dev Guide

Create segments in Google Analytics 4

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

📘

Note

See Optimizely's Third-Party Add-Ons & Platform Integration Terms.

📘

Note

If you use the GA4 Report Generation feature, you do not need to create segments manually. Instead, you can use the Audiences created automatically with the GA4 integration.

You must set up an integration between Optimizely Web Experimentation and GA4 to create segments for Optimizely Web Experimentation within GA4. After setting up your integration between Optimizely Web Experimentation and GA4, 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.