Add Revenue Tracking to Your Site

Track Revenue with Google Analytics

If you paste the Convert Experiments code right after the </title> tag and you use the latest standard Google Analytics e-commerce tracking, we will automatically connect e-commerce revenue tracking of Google Analytics to all your tests.  There is no need to install anything; this works out of the box for all clients.

Create a Revenue Goal with Google Analytics

Go to your Experience Summary, then the Goals section, and click Edit:


Create a Revenue goal from the Goal templates in your experiment.


Fill in the Goal name and page URL to match the confirmation page of your purchases:


Save it and you are done. 

Track Revenue without Google Analytics (manual revenue tracking)

If you don’t want to use Google Analytics e-commerce tracking or you cannot use it as it's not implemented through the standard tracking code, we have another way you can send a conversion, revenue and the amount of products ordered by the client.

Create a Revenue Goal

First, create a Revenue goal. You can do this from the "Experience Summary" of your experiment:


Select Manual Revenue Tracking:


Copy JS code into your website

After you have saved the goal, go edit it and you will find the JavaScript code below. You will need to copy and paste this script anywhere on the page (after the main Convert tracking code) of your website to send revenue and ordered products count to our system with the appropriate fields mapped to variables on your e-commerce system. 

    window._conv_q = window._conv_q || [];

In the above code you need to replace the following fields with the actual values:

  • Revenue: revenue using 123.45 (dot as cent divider)
  • Product Count (number of products in the cart): products_cnt
  • Parameter goal_id is automatically filled in with the ID of the goal once you have saved the goal.*

* Please be sure you copy the script after saving the goal, and ensure that this parameter contains the actual goal ID before you add the script to your page. You can use the revenue tracking code above together with any goal ID from your project; the revenue data will be stored connected to that goal and a conversion will be recorded for that goal.

Note: In February/March 2018, we made a change to the above revenue code, changing "sendRevenue" to "pushRevenue" and removing the transaction ID in the new pushRevenue code.  Don't worry, this won't have any negative effect on your previous experiments that used sendRevenue -- they will continue to work.   

Allow Multiple Transactions 

By default we only allow one transaction per visitor/experiment/goal to go through. If you want to allow multiple transactions for the same visitor/experiment/goal to go through you can use one more parameter in the above code as shown below:

  window._conv_q = window._conv_q || [];

One page forms or Ajax

This is useful specifically if you do not have a specific URL where you can trigger the goal, like one page forms or ajax submitted forms where you want to track the form submissions together with the revenue generated. To do that, first you need to create a "Javascript triggered goal":

Then, after saving it, if you edit it again you will get a triggering code:


Locate the goal ID that you want to use together with the revenue tracking code.


This will attach the right revenue (two decimal value of the transaction) and amount of products to the variations you were testing and when the goal-page is the same as the one where the revenue is tracked you will even get two extra tabs in the test results main goal besides the conversion rate (see below the conversion rate, revenue and order items).

Conversion Rate Report


Revenue per Visitor Report


Average Product per Visitor Report


Note: If the checkout is on a third party domain, add the Convert Project JavaScript code to that site first and then this revenue tracker. Convert Experiments works cross domain in most cases, but you may have to check that Cross-Domain linking is allowed in your Project Configuration. Starting in March/April 2018, Cross-Domain linking is off by default in newly-created Projects because of GDPR. Also, you will have to add the extra domain to your Project Configuration - Active Websites. 

Need assistance? Start a conversation with our Support Team.

Reliably Convert More Site Visitors, Even If Everything Else is Changing in Your Business.

✓ No Credit Card  ✓ Easy Set-Up  ✓ Access All Features