Hi Pavel.
Thanks for your reply.
To add more information, we have the following nodes set up in the Content Tree:
/Home - this has the A/B test set up on it with one child (/Home/VariantB)
The A/B test has 2 variants listed:
Control - /Home
VariantB - /Home/VariantB
When I visit the root of the site (the /Home node), the first time I get randomly assigned the content from either the /Home node or the /Home/VariantB node as expected, and the CurrentABTestName and CurrentABTestVariantName are set correctly.
If I simply reload this page, or visit the root URL of the site, the CurrentABTestName and CurrentABTestVariantName values are now both null - although the content is still shown from VariantB in the case where I was assigned VariantB on first load.
Can you confirm that your test is setup similarly, and that these values are not null after refreshing/revisiting the page? I'm unsure what could be causing the values to not be set after reloading the page.
Thanks for your help.