
Feb 8, 2024
Instructions to tracking experiments with Google Analytics 4
Optimal UX provides robust analytics with Machine Learning and insights extraction. However, you can still use Google Analytics 4 to compare the behavior of your experiment participants.
Below is the short video about how to set up an audience for your experiment:
Enable integration with GA4
Go to your website settings by clicking the gear icon in the top right corner:

2. Select “Integrations” in the left-side menu:

3. Turn on “Google Analytics 4”

4. Now your experiment data will be also sent to Google Analytics 4 if it is enabled on a web page.
5. (Optional) For your convenience Optimal UX can automatically create audiences whenever a new experiment is launched. Click “Authorize” and follow instructions to connect your site to Google Analytics property.
It is recommended to configure automatic audience creation.
Configuring experiment audiences
To distinguish between experiment variants in Google Analytics 4 you need to create audiences there - one per each variant. Every time you launch an experiment, the system will generate unique identifier for each variant that needs to be copied into Google Analytics.
Click “Configure GA4” on the Analytics page
Copy the ID code of your first Variant. You will need this code later.
Well done! Now proceed to your Google Analytics account.
Set up Google Analytics 4 to track your experiments
Log into your Google Analytics account. Note: You need to have Admin access to the account.
Hover over the left sidebar and click on the “Admin” section in the bottom left corner.
Scroll down to the “Data Display” section and click on “Audiences”
Click on “New audience” in the top right corner. Note: You have to create a unique audience for each variant in your experiment.
Select “Create a custom audience”
Give your audience a meaningful name, e.g. “Experiment name — Variant letter”
Click on “Add new condition” and select “General”, and then “Experience - variant ID”
Click on “Add filter”, select “exactly matches (=)” and enter the Variant ID you have copied from OptimalUX app.
Click “Save” in the upper right corner:
That’s it! Remember, you have to create a unique audience for each variant in your experiment.
View your experiments in Google Analytics 4!
Other integrations
Read more:
Conversion Tracking: A Complete Guide to Experiment Goals
Conversion tracking forms the backbone of successful A/B testing, and Optux.ai provides a comprehensive goal system that measures what matters most to your business. From simple button clicks and form submissions to complex custom JavaScript events and scheduling integrations with HubSpot and Calendly, the platform offers seven distinct goal types that capture every meaningful user interaction. By automatically tracking these conversions and applying statistical analysis to determine winning variants, Optux.ai transforms raw user behavior data into actionable insights that drive website optimization decisions, all while maintaining flicker-free performance and accurate attribution that's immune to ad blockers and privacy settings.

Aug 31, 2025
📁 A/B testing
📁 Split testing
📁 Targeting
Optimizing Cloudflare Worker Usage
Cloudflare Workers charges per invocation, and costs can quickly spiral when workers process every request including static assets. This comprehensive guide explains how to optimize your worker usage and dramatically reduce costs through strategic route exclusion.

Aug 19, 2025
📁 Cloudflare
📁 Installation
Content Security Policy (CSP) Header
Our Smart Agent automatically updates Content Security Policy (CSP) headers to enable smooth A/B testing without compromising browser security. Our cybersecurity-vetted solution eliminates manual CSP configuration, ensuring experiments run smoothly while maintaining strict security standards.

Aug 15, 2025
📁 A/B testing
📁 Installation
📁 Cloudflare
Whitelisting Outgoing IP Address
OPTUX uses a single static IP address for all outbound connections. Learn how to whitelist this IP in your system

Aug 17, 2025
📁 Installation
📁 Cloudflare