Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

__utmx cookie is never set #2

Open
marccarabias opened this issue Mar 12, 2014 · 2 comments
Open

__utmx cookie is never set #2

marccarabias opened this issue Mar 12, 2014 · 2 comments

Comments

@marccarabias
Copy link

use UnitedPrototype\GoogleAnalytics;
$experiment = new GoogleAnalytics\Experiment('xxxxxxxxxxxxxxxxxx');
$variation = $experiment->chooseVariation();

everytime I get different variations, the reason is that $_COOKIE['__utmx'] is unset...
@thomasbachem do you know why? do I have to add more code apart from these 3 lines?? Thanks

@hlorofos
Copy link

hlorofos commented May 5, 2014

actually cookie is set, please debug with the help of curl or similar tool.
there are two cookies set:
< Set-Cookie: __utmx=84438360.pD0ycwtaSmKDkr_7thBqaA$0:1; expires=Sat, 14-Nov-2015 13:24:37 GMT; path=/; domain=.xxxx
< Set-Cookie: __utmxx=84438360.pD0ycwtaSmKDkr_7thBqaA$0:1399296277:8035200; expires=Sat, 14-Nov-2015 13:24:37 GMT; path=/; domain=.xxxx

@LRP-sgravel
Copy link

I had the same problem where the cookie wasn't set on the SERVER side only. Therefore, GACX wasn't able to deliver the same experiment on all occasions. My fix was to use a different cookie name (gaep_utmx) to duplicate the utmx cookie.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants