How It Works

Find out how our solution helps you turn browsers into buyers.


From Shopify to Klaviyo, explore over 80 integrations.


Access guides, troubleshooting, and expert assistance.

About Us

Hear our origin story and meet our team.


Become an official Partner.

Affiliate Program

Learn more about our Affiliate Program.


Explore career opportunities with


See upcoming events we’re hosting or attending.


Got a referral? Let us know here.

Product Support


How to use the Revenue Tracking Script

How does the Revenue Tracking Script Work?

To track customer orders from contacts on your eCommerce site, you can use our Revenue Tracking Script. This will identify the:

  1. email address
  2. order number, and
  3. transaction amount

tied to a contact from your eCommerce site. We will then pull that data and display it on your Dashboard.

TAKE NOTE that including the email variable is *necessary* for proper ROI and attribution analysis.

Where should I put it?

The revenue tracking script should only be placed on post-checkout/purchase confirmation pages, or wherever a contact lands once they have finished a transaction.

TAKE NOTE: The revenue tracking script automatically uses our suppression script. We can identify contacts with order information if they are suppressed.

What do I need to use it?

From your eCommerce platform, you will need the following variables:
ORDER EMAIL : **This variable is imperative for proper ROI Analysis and attribution.**
ORDER NUMBER: Attaches the customer's order/transaction number
ORDER AMOUNT: Passes the total amount of the order.

Where do I find it, and how do I set it up?

1. From your Retention Dashboard, click Code Script.  Then, click View Your Script.

2. Check the box next to Revenue Tracking. Then, click Copy Code and paste it into your post-purchase thank you or confirmation page(s).

You will need to get the variables for the order number, order amount, and order email from your eCommerce site. Then, replace ORDER_NUMBER, DOLLAR VALUE, and ORDER EMAIL in the script with those variables, then place it on your post opt-in or checkout confirmation page(s).*

*Note that our placeholders contain double brackets:

{{ order_number }} 

If you are not using Shopify or you are using system where those brackets are not part of the templating language, remove the brackets. They are part of the variable placeholder used in Shopify and specific to this example.

Depending on what those variables look like, the updated version of the script might look something like this:

Okay, I've added the script! Now what?

Once the revenue tracking script is added, we will start to capture order information for your contacts that land on these pages.

Once data is collected, your dashboard will display your week-over-week revenue, contacts, and return on investment (ROI). You can click View More next to any of these sections to see the contact information, event, details, dates, and other information.

Revenue Tracker

How to add revenue tracking to your site

View tutorials for the e-commerce site you use to see how to add the revenue tracking script: