V
V
Vlad2015-11-06 23:53:39
Google Analytics
Vlad, 2015-11-06 23:53:39

How to create a Google Analytics experiment for all articles on a site?

When creating an experiment in Google Analytics, you must specify a link to the original version of the page and its variants that will be tested.
Is it possible to do something to specify all the articles on the site as the initial option? And as additional ones, I will substitute GET parameters that will change the articles as I wish.
I have Datalife Engine.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
O
Oleganalytics, 2015-12-21
@Oleganalytics

Try like this
If the server received a cookie with the number of the test option (the cookie for each test needs to be named differently), then it displays the desired option, otherwise it returns an empty page on which 2 actions are performed: the cookie is set depending on the option set by Google and the page immediately it is updated so that the request goes to the server with a cookie of the variant. The option is defined as in the second solution.
2. Google itself offers us a simpler and more civilized way. But it focuses primarily on small changes. I'll get ahead of myself - for big changes it can also be used if you load the changed part of the page with Ajax. The essence of the method is to determine the option and make some changes through js (for example, the inscription on the button and the picture change).
An example of defining a variant here https://developers.google.com/analytics/solutions/...
An example of changing a page here https://developers.google.com/analytics/solutions/...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question