The Track Revenue goal allows you to track revenue from purchases and other transactions on your website by attributing the revenue amount for every valid and successful transaction. After you set up the revenue goal, VWO generates a revenue tracking code that you can add to your website, usually on the purchase confirmation page.
Follow these steps to track revenue generation for a test:
- On the New Goal page, select track revenue on and type the URL of the goal page where you will have access to the revenue amount of each successful transaction. It is typically available on the thank you page after a successful payment/transaction.
- On that ‘thank you’ page, copy and paste the following revenue code and pass the value equal to the total revenue generated by the visitor. Consider that a visitor purchased two items, one for $15 and the other for $7. Now, enter the output value as 22 in the variable. If the visitor bought only one item (for $10), enter the output value as 10. You don’t need to be concerned about which variation the visitor saw or what individual items did the visitor buy. You just need to output the total revenue and VWO will take care of the rest.Consider another example: If the page where we redirect after successful plan purchase is http://visualwebsiteoptimizer.com/thank-you, then all we need to do is to copy-paste default VWO code there and also output following code:
window.VWO = window.VWO || ;