So, I'm trying to implement an Google Analytics content analysis experiment on a website that is made as an angular one page website.
I installed two versions of my homepage: /and /?v=2, inserted into the google code according to the instructions, at the very top of the tag <head>, and it worked fine, Google sent 30% of the traffic to one and 70% of the traffic to the second version of the page.
The problem arose when I tried to access, say /contactgoogle, apparently, I would think that I was still accessing /and sending me to /v=2(if I were part of the 30% that is).
I don’t even know why this is happening, but it is, I think it can help if the google functions do not start immediately after loading, but only after the angular main page loads controller. But I could get google code working in the specified controller.
Has anyone dealt with this problem before?
source
share