: Google Experiments & dynamic URLs I want to set up a Google Analytic's Experiment to test variations of product page. Parts of the URL changes depending on what product you are viewing - here
I want to set up a Google Analytic's Experiment to test variations of product page. Parts of the URL changes depending on what product you are viewing - here are some examples...
domain.com/products/shirt/100
domain.com/products/pants/200
domain.com/products/hat/300
I want to experiment on everything that comes after /products/.
How can I set this up as an experiment? Do I just input domain.com/products/? Or do I add some fancy regular expression magic?
... Is this at all possible, or do Experiments only apply to static pages? If that's the case; what alternatives are there out there?
More posts by @Radia820
1 Comments
Sorted by latest first Latest Oldest Best
This use case is partly explained in the Google Analytics Help discussing using relative URLs, particularly the section labeled "How Relative URLs Work with Multiple Original Pages". In short, you define the experimental variations as using a parameter in your URL to choose the variants so you can apply the variations to a whole group of URLs. So you set up your server to show variant A at domain.com/products/shirt/100?var=a and variant B at domain.com/products/shirt/100?var=b and Google will assign visitors one variant or the other and track the results.
If you want to run the experiment across hundreds of product pages it's no problem, although it's not well explained. Any page that has the experiment code is part of the experiment. So you add the experiment code to your product template and specify a relative URL and that parameter will be added to every page that contains the experiment code, which is to say all your product pages. Then you just specify one specific product page as the "original" URL so Google can validate that it's all set up correctly and you're good to go.
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.