Hi Rachel
Ideally, if you can set a cookie when the user opts in, you can make Episerver executes A/B tests only when such opt-in cookie is present in the request.
I have looked into this for a similar use-case. The simplest solution is to override the two SwapDisabled
methods from the ITestingContextHelper
interface, by using StructureMap interception.
But it didn't work because of a bug in the A/B testing package that makes it ignore intercepted implementations.
I ended up doing this by upgrading the A/B testing package to v2.5.11 and registering a component that implements the IPersonalizationEvaluator. In the Personalize() method I read a cookie that contains the user's cookie preferences and returned true if the cookies can be set.
Note that doing this also affected whether Visitor Group Personalization was enabled as this works the same way
Hi,
We are trying to become compliant with the GDPR cookie legislation that states that any none-essential cookies are not set until a user explicitly accepts them.
We use the A/B testing add on, is there any way of getting it to not set the EPI-MAR-<Content GUID> cookie until we allow it to following opt-in on a per user basis?
-Rachel