Reputation: 76320
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?
Upvotes: 9
Views: 3867
Reputation: 4660
Google optimize is a new product by google that can run several A/B tests on a single page. The products comes with fancy reporting screens to analyze the results.
The free plan allows running 3 concurrent experiments. You can also see the results in google analytics.
Upvotes: -2
Reputation: 11714
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.
Upvotes: 7
Reputation: 18589
Upvotes: 0