lux icon indicating copy to clipboard operation
lux copied to clipboard

[Feature] A/B tracking in frontend

Open martinpribylhd opened this issue 1 year ago • 0 comments

Hello, we would like to set a cookie for AB testing which will enable the visitor to see again the same variant like for the first visit.

Our solution over frontend is to use the cookie LUXABTEST , but in the frontend is not accessible the current variant. So we try to extend \In2code\Luxenterprise\Middleware\AbTesting:addDataAttributesToHtmlContent by adding this parameter:

data-lux-abvariant="' . strtoupper($this->abTestingPage->getCharacter()) . '"

martinpribylhd avatar Sep 10 '24 10:09 martinpribylhd