AdWords is now Google Ads. Our new name reflects the full range of advertising options we offer across Search, Display, YouTube, and more. Learn more

Optimize
3.1K members online now
3.1K members online now
Learn how to create your first experiment and get tips on creating A/B, redirect, and multivariate tests.
Guide Me
star_border
Reply

Modal popup/lighbox in experiment?

Visitor ✭ ✭ ✭
# 1
Visitor ✭ ✭ ✭

I need to launch a modal/lightbox as part of my experiment for vairant B where it does not exist in the original (A). Has anyone done this before and can you help by providing an example of how to do it?

Modal popup/lighbox in experiment?

Visitor ✭ ✭ ✭
# 2
Visitor ✭ ✭ ✭

I was able to set up an A/B test with an HTML5/CSS3 modal based off of this code: https://codepen.io/spenceroreilly/pen/ezpdYX.

 

I used "insert HTML" and included both the css and the lightbox HTML within it.

 

hope that works for you, too!