Thanks to visit codestin.com
Credit goes to github.com

Skip to content

retrieve test variation id #5

@ziozec-zz

Description

@ziozec-zz

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions