humanmade / altis-analytics

Analytics module for Altis
https://www.altis-dxp.com/resources/docs/analytics/
GNU General Public License v3.0
9 stars 3 forks source link

Render A/B testing block on frontend #193

Closed rmccue closed 2 years ago

rmccue commented 3 years ago

Once an A/B testing block has been created, we want to render it on the frontend. We have some existing rendering through custom components for our existing experiments, but @roborourke has identified that markup/elements may not be great.

We might want to bring this closer to how personalisation works instead. Personalisation has a container custom element, and variant custom elements; it then conditionally chooses which of these to render. We want to do a similar thing, except by using our random selection instead of based on audiences.

The handling for events will "mash the logic together" 8)

Acceptance criteria: