Learn More: How to Set Up Revenue Tracking
Optimizely can track total revenue from purchases or other events on your site, and attribute the amount to a specific experiment and variation. Once you add the required code to your site (usually on the purchase confirmation page) and add the revenue metric to your experiment, you’ll be able to see the revenue earned per visitor, revenue per paying visitor, purchases, and the total revenue earned per variation on your Results page.
Revenue usually won't be your primary metric, because unlike clicks or pageviews, revenue does not measure a specific, discrete action taken by your visitors. However, tracking revenue is a great way to tie your optimization efforts to the metrics that your company values most.
To track revenue, you’ll need to add a small snippet of code to your site to call Optimizely's revenue tracking API. As mentioned above, this code (an example of a custom event) typically goes on the purchase confirmation page, and it should look like this:
The 'eventname' parameter is required.
valueInCents represents the purchase amount, in cents (purchase amount*100). It is crucial that this value is passed to Optimizely in cents.
Once you've implemented this code on your page, you won't need to make adjustments to it again. The same code can be re-used to track revenue for multiple experiments.