Does anyone know how I can set up and run simultaneously multiple experiments (or a single one, for that matter) off two pages (original and variation) with a dozen links to signup pages to figure out which one of the two variations produces better conversion (how many people click to go to signup pages from either one of the two variations and which ones converts better) + to figure out how many people have viewed a video on any of the dozen possible signup pages?
I can't figure this out, because I can only set up a single goal (ending up on a specific signup page, I have to enter that page's full URL, so I have to create a dozen goals, one for each page) and then assign that goal to a single experiment. And if I try and replicate that experiment and assign it a different goal, at the end when I try and run it, it tells me that it's sharing code with an existing experiment and starting the new one will end the old one.
I kinda want them to run simultaneously.
Or, even better, how (if possible at all) do I set up a single experiment to track all this?
The ability to run multiple experiments simultaneously is one of the most significant force multipliers for development teams. Running multiple experiments simultaneously can maximize a company's velocity, flexibility, and revenue. For this process to be as impactful as possible, here are some best practices.
Google Optimize is a free split testing tool that allows you to test different variations of your web pages. It pulls data from Google Analytics and measures your variants against your chosen objective. This might be a custom objective like a file download or a more generalised engagement metric such as Time on Page.
It seems there are two questions in this
For number 1, this might be a good reference but in short you can't track multiple goals which is why they give you an option to rewrite the data from variations into the original URL in content reports. You then have to sift through the data manually. In all honesty, I think the best way for you to track from different variations most relaibly is to simply make your event tracking dynamic so that it is aware of which variation you are on. So for example, if you have click-tracking set up on your buttons you could do something like
var variationNum = 1; // variation you are on
$('.element-to-track').on('click', function(e) {
ga('send', 'Variation ' + variationNum, 'Event Action', 'Event Label');
})
For number 2, how to run multiple experiments, it really requires to have multiple experiments and then using the cxapi and then grabbing the variation for each of those experiments. This answer provides a lot of insight but essentially the cxapi lets you set variation for the user for specific experiments.
cxApi.setChosenVariation(variation1, ‘YByMKfprRCStcMvK8zh1yw’);
cxApi.setChosenVariation(variation2, ‘FAsjnfJKFASywafasaFSAa’);
Set the user will be put into those two experiments independently of each other. Unfortunately the determination of variation, which you usually use cxapi.chooseVariation()
requires you to do load the api with the specific experiment ID in mind.
One thing I did notice is that you technically can make the request twice and passing the separate parameter will make it so that it does have the chooseVariation()
but not sure if this is the cleanest solution.
<script src="//www.google-analytics.com/cx/api.js?experiment=YByMKfprRCStcMvK8zh1yw"></script>
<script>
var variation1 = cxApi.chooseVariation();
</script>
<script src="//www.google-analytics.com/cx/api.js?experiment=FAsjnfJKFASywafasaFSAa"></script>
<script>
console.log('Experiment FAsjnfJKFASywafasaFSAa');
var variation2 = cxApi.chooseVariation();
console.log(variation2);
</script>
<script>
cxApi.setChosenVariation(variation1, 'YByMKfprRCStcMvK8zh1yw');
cxApi.setChosenVariation(variation2, 'FAsjnfJKFASywafasaFSAa');
</script>
Hope this helps.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With