Hi,
as I understand each call to setCustomVariable overwrites the previous setting .
Is it possible to make the value of setCustomVariable persistent or to do setCustomVariableIfNotSet
I’m aware of the scope=visit parameter, however as far as I understand this does not prevent overwriting the existing value.
Seen some example’s pushing functions but I can’t get it to work.
_pag.push { function
if not custom variable {
setCustomVariable [..];
storeCustomVariablesInCookie();
}
}
actual goal is to set up simpel A/B testing, later on the page will be some code like
switch CustomVariable
case 1 : write some css;
case 2 : write other css;
any other suggestions how to set up A/B testing with piwik are welcome of course