You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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
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.
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
The text was updated successfully, but these errors were encountered: