Optimizely

Integrating LogRocket with Optimizely

If you are using Optimizely to run A/B tests, you can use LogRocket to gain deeper insights into the differences between your experiment groups.

Set up your experiments and variations in Optimizely as normal. Take note of the experiment and variation IDs. See here for more information about locating the IDs. You can also access information about the experiments and variations selected for a user using Optimizely's JavaScript API, which is available on the global window.optimizely object once the Optimizely snippet has loaded. For more details, see here.

Pass information about the experiments and variations selected for a user to LogRocket using LogRocket.track() . For example:

LogRocket.track(EXPERIMENT_NAME, {
  variantName: VARIANT_NAME,
});

Then, within LogRocket, you can search for custom events and save filters to create buckets of sessions within a particular group based on experiment and variation: