In this article, you’ll learn:
About Revenue Goal
The Revenue goal typically tracks the revenue generated by visitors to your website during their journey. For example, consider an e-commerce site, where the visitors make purchases. You can track the revenue generated after the visitors submit the billing detail form, successfully. To determine the revenue earned, you can simply define a revenue tracking goal for each successful billing form submission.
The Revenue goal can be set up for both VWO Insights and VWO Testing campaigns. In both the cases, the goal requires a tracking code (along with the VWO SmartCode) to be implemented on the page, where the revenue is to be tracked. Then, you need to define your revenue value in this tracking code. Usually, the revenue value is available on the ‘thank you’ / ‘payment confirmation’ page, where the transaction is completed.
Applying the revenue tracking code to this page ensures that VWO tracks only those transactions where revenue is generated.
Some Key Points
- While adding the revenue value in the revenue tracking code, ensure that it doesn’t include a comma (,). This is because, VWO by default, replaces the comma with a decimal. For example, if you enter the value as 1,500, the comma is replaced with a decimal as 1.5. However, you can enter the value with a proper decimal like 1500.0.
- If you don't want to hardcode the code snippets on your website, you can choose to work with any of the following alternatives: Tag managers or the Pre-campaign JS option of VWO Editor. The Pre-campaign JS option is only available with VWO Testing.
For VWO Insights Goals
Perform the following steps to set up the Revenue goal under VWO Insights:
- From the Goal Type dropdown, select Track Revenue and enter the URL of the page, where you want to track the revenue and click Next. On the Audience page, enter the audience URL, and click Create.
- Now, you will be able to see the following revenue tracking code snippet generated by VWO to track the revenue.
For VWO Insights:
Copy the code and paste it into the source code of your ‘thank you’ / ‘payment confirmation’ page and pass the value equal to the total revenue generated by the visitor. The revenue value is often a variable present in your website that populates the value of the purchase made by the visitor.
For example, if a purchase is made for $5, the revenue variable collects the value and populates it. If it is for $9, the revenue variable updates the value accordingly.
You can directly pass the revenue variable in the goal snippet so that it automatically picks the revenue value of the purchase. To do so, replace “REPLACE_THIS_WITH_ACTUAL_REVENUE" with the revenue variable in the code.
For VWO Testing
Perform the following steps to set up the Revenue goal for your VWO Testing campaign:
- From the Goal Type dropdown, select Tracks revenue on and enter the URL of the goal page where you have access to the revenue amount of each successful transaction. It is typically available on the ‘thank you’ / ‘payment confirmation’ page after a successful payment/transaction. Also, in the Current revenue per visitor (in USD) field, enter the current revenue per visitor for the pages that are part of the current test. This helps you estimate the revenue per visitor by analyzing the revenue data from other VWO studies, GA, or other analytics tools.
NOTE: Since we have identified that most users find it hard to evaluate the value for the Current revenue value per visitor field, resulting in incorrect data evaluation, we have decided to deprecate this field. Therefore, no new campaign will feature this field anymore. Instead, VWO will directly calculate this value from the data collected during the campaign.
- Once you have completed setting up the campaign, you will be able to see the following revenue tracking code snippet generated by VWO to track the revenue.
For VWO Testing:
Copy the code and paste it into the source code of your webpage and apply the revenue variable to it.
Add Multiple Revenue Goals on a Single Page
By default, VWO allows creating one revenue tracking goal for each test. However, to track multiple revenue goals on a single page, such as a 'thank you' or 'payment confirmation' page, use the following code snippet:
Locate your Goal ID in VWO
To locate your goal ID, perform these steps:
- Select the test campaign for which you want to locate the goal ID.
- Go to the Settings > Gals tab.
- The Goal page will display all the goals you have created for the test, with a Goal ID assigned to each goal created.
If you need information regarding how much was the total sales made for a specific test, you can integrate the reports with your GA/UA account and then compare the data shown in VWO – unique conversions, vs in GA - total sales made by the visitor who became a part of the VWO test campaign.