Google Optimize
If you already own a Google Optimize account for your web shop, skip to Configure the Plugin
Create Google Optimize Account
Create a new account
Configure the Plugin
Copy and paste the container ID from Google Optimize container into the Pixel Manager for WooCommerce plugin.
Anti-Flicker Snippet
Available from version 1.29.0
In rare cases, it can happen that Google Optimize tests don't load fast enough. The original variant will be shown for a very brief moment and then switched to the test variant. The eye perceives this as flicker.
The anti-flicker snippet prevents this.
The user can activate the anti-flicker snippet in case flicker is observed. It also will automatically be activated if Google Optimize and Lazy Loading the Pixel Manager are active at the same time.
To enable the anti-flicker snippet in the settings, go to Advanced > Google, check the tick-box and save the settings.
Adjusting the Anti-Flicker Snippet Timeout
If you need to adjust the anti-flicker snippet timeout, you can do this with the following filter. The default is 4000
milliseconds.
add_filter('pmw_google_optimize_anti_flicker_timeout', function () {
return 5000;
});