Questions tagged [google-optimize]

This tag must be used when the OP is related to Google Optimize or Google Optimize 360.

Google Optimize 360 is a testing tool and personalization DMP(Data Management Platform). Users can test and experiment more features on their website and create A/B, multivariate, or redirect tests to alter end-user experiences. It is a part of Analytics 360 suite.

enter image description here enter image description here

182 questions
31
votes
5 answers

Is it possible to read ExperimentId and VariationId in Javascript with Google Optimize?

I have created an A/B-test using Google Optimize. Now I would like to read the current experimentId and variationId in Javascript. My goal is to run different javascript based on the given variation. I can't seem to find any info on this in the…
Øyvind Holmstad
  • 1,379
  • 2
  • 13
  • 22
20
votes
1 answer

General problems with Google Optimize in React / Next.js

The title might seem a bit vague, but that's because I'm currently experiencing multiple problems integrating Google Optimize in our React / Next.js project. I'm going to try to explain my problems and actions as detailed as possible. However, let…
Cédric Bloem
  • 1,447
  • 3
  • 16
  • 34
11
votes
2 answers

How do I run Javascript on Document Ready in Google Optimize?

How do I run javascript on window load or document ready in Google Optimize campaigns? It seems like it allows me to select DOM elements all the way up to Body, but I need to run js on document ready.
Stewie Griffin
  • 9,257
  • 22
  • 70
  • 97
10
votes
3 answers

Google Tag Manager & Optimize Server-Side experiment sending variation

I'm using the Google Tag Manager container for managing scripts. I'm trying to perform a server-side Optimize/Analytics experiment. I require server-side for performance reasons. I've performed client-side experiments just fine with the GTM/Optimize…
9
votes
2 answers

Google Optimize not triggering when running on localhost

I am trying to get Google Optimize experiment data in JavaScript, by following these instructions. But I get no callback and I can't see anything happening in the debugger either. The linked instructions use the gtag way of configuring GA, so I have…
Jesper We
  • 5,977
  • 2
  • 26
  • 40
9
votes
1 answer

Has anyone been successful in implementing google optimize in a SPA React App?

I am fairly new to the Google Analytics Suite and am currently trying to integrate Google Optimize for A/B testing in a react app. I have gotten to the point where the variant changes display on the desired web page, but only in Preview mode, and am…
rh0delta
  • 129
  • 1
  • 8
8
votes
1 answer

Multiple server side experiments with Google Optimize and GTM

I was wondering if it's possible to set up multiple server side experiments using Google Optimize and Google Tag Manager. We followed https://stackoverflow.com/a/52157837/12936081 and it seems to be working just fine with the values sent from the…
6
votes
1 answer

Setup Google Optimize anti-flickering script on NextJS/ReactJS

On a NextJS/ReactJS project, I attempt setting up Google Optimize for some experiments. What I want to avoid though is the flickering effect it has while Optimize is changing the visual elements on each experiment. For this cause, I have used the…
Nick Louloudakis
  • 5,856
  • 4
  • 41
  • 54
5
votes
1 answer

How do I add a script tag before the closing body tag for an A/B experiment using Google Optimize?

Using Google Optimize I want to run an A/B test which includes loading an external script for one of the variants. In order to do this, I need to be able to add my script before the closing tag, preferably.