php-gacx icon indicating copy to clipboard operation
php-gacx copied to clipboard

__utmx cookie is never set

Open marccarabias opened this issue 10 years ago • 2 comments

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

marccarabias avatar Mar 12 '14 15:03 marccarabias

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

hlorofos avatar May 05 '14 13:05 hlorofos

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.

LRP-sgravel avatar Jun 22 '16 13:06 LRP-sgravel