RudderStack is an open-source, warehouse-first customer data platform (CDP) that builds your CDP on your data warehouse for you. It provides a powerful transformation framework to process your event data on the fly.
RudderStack supports integration with VWO that allows you to send relevant events from VWO to other destinations configured to that source.
Let’s look at the step-by-step guide to integrate RudderStack with VWO for efficient A/B testing
Configuring VWO as a Source Within RudderStack
RudderStack supports only JavaScript as a source while adding VWO as a destination in RudderStack.
To know more about the difference between Cloud mode and Device mode in RudderStack, read the RudderStack connection modes guide.
Once you have confirmed that the platform is supported, perform this:
Procedure
- From your RudderStack dashboard, add the JavaScript source and select VWO as a destination.
Please follow our guide on How to Add a Source and Destination in RudderStack to add a source and destination in RudderStack. - After naming the destination, click on Next. You should see the following screen:
You can configure the settings such as enabling Single Page Application, setting Library Tolerance and Settings Tolerance, and Use Existing jQuery while initializing the VWO SDK. Send experiment viewed as track or identify traits can also be configured. To complete the configuration, click on Next.
Sending Experiment Viewed from VWO
When one of the variations from an experiment is loaded for a user, RudderStack sends a track call with Experiment Viewed as the event name, along with the experiment and variation details as the associated properties.
A sample code snippet for this activity is as shown:
rudderanalytics.track('Experiment Viewed', {
experiment_id: 'Signup',
variation_name: 'Signup as a default landing'
});
This track event will be sent to other destinations such as Google Analytics, Mixpanel, etc. This is useful in analyzing the experiment results on a different platform. You can also set experiment-related data such as user traits so that the other destinations have the knowledge of the variations a user has seen.
Tracking Revenue Goals
RudderStack also allows forwarding the revenue amount to VWO when the Order Completed track event is called.
A sample code snippet for the above track call is as shown:
// We use revenue or amount from the properties
rudderanalytics.track('Order Completed', {
revenue: 125
});