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
From the source code of \Namshi\AB\Container it's seen that internally it maintains an array of tests by their names as a key. So there are no IDs ready to use.
It's possible to overload the class and implement IDs relatively easy.
Hi all,
is there a way to retrieve variation id for a test?
$test = new Test('homepage_color', array(
'white' => 1,
'black' => 1,
'yellow' => 1,
));
$test->getVariation(); // black
$test->getVariationId(); // 2
It should be useful in case of multivariation test to obtain a cross test unique id (tracking + analytics purpose).
Thanks,
Fabio
The text was updated successfully, but these errors were encountered: