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
* Retrieves _all_ active A/B test variants for the given visitor throughout the website.
24
20
* The visitor external id can be retrieved using `IAnalyticsVisitorExternalIdHandler.GetExternalId()`
25
21
26
-
### Example
22
+
### Example - Getting the A/B test variants for the current visitor
27
23
28
-
To use these services, inject the specified service into your code. The example below uses `IAbTestingService.GetCurrentVisitorActiveAbTestVariants()`by injecting the service into a controller:
24
+
This example demonstrates how to create a service that retrieves the active A/B test variants for a specific visitor, content, and culture variation. The service wraps the `IAbTestingVisitorService.GetVisitorAbTestVariants()`method, using the current HttpContext and UmbracoContext to obtain the visitor ID and requested content.
0 commit comments