Tracking Optimizely redirect type experiments

In my previous post I’ve talked about how to manage to use the native Optimizely tracking when using Google Tag Manager . Now we’re going further and we’ll learn how to track the experiment that are based on redirects in the best way possible.

So, firstly you’ll need to enable the Optimizely and Google Analytics integration. Now here is the tricky part. If we’re sending users to an experiment page that it’s based on … Lee el resto de la entrada


Enabling Optimizely native Google Analytics Integration within Google Tag Manager

As you may already know, Optimizely has an in-built Google Analytics integration, which will allow us to track the experiments and variations being showed to a client using custom dimensions.

For enabling them, you’ll need to put the following lines after the create command and the pageview one:

window.optimizely = window.optimizely || [];

This is a bit tricky when using Google Tag Manager native tags, since it doesn’t allow you to execute anything after … Lee el resto de la entrada