Tracking events
Power your A/B experiments by recording which variant each user sees and whether they converted.
Recording an impression
Call ff.impression() right after evaluating a flag that's part of an experiment. This tells Vexil which variant the user was shown.
Recording a conversion
Call ff.track() when the user completes the goal action. The event name must exactly match the goal event you entered when creating the experiment.
Always call
ff.impression() before ff.track() in the same user session. Conversions are automatically matched to the most recent impression for that user.