Authentication
Affiliates
Conversions
Offers
Payments
Reporting

Refersion Tracking Documentation

Getting Started

In order for Refersion to operate as expected, we must be able to capture your transactions. If you are not using a shopping cart platform that we already integrate with, you must implement our tracking solution on your web site manually. Our tracking isn’t very complicated and is installed similar to how Google Analytics is installed.

To install, you must complete the following steps.

Include a JavaScript code on every page on your site so that we can track your affiliate visits. Report each order to us either on your “thank you” page or through a Webhook (for more advanced developers). Your Refersion API Keys For most of our APIs you must identify your account with your own unique Refersion API Public and/or Secret key. You may see existing or create new API keys right from your account settings.

Step 1 - Tracking Visits

Please copy/paste the following code on every page on your web site where you expect your affiliates to drive traffic. Make sure to place the code just before the tag in your HTML.

Code

<!-- REFERSION TRACKING: BEGIN -->
<script src="//www.refersion.com/tracker/v3/pub_0123456789DEMO.js"></script>
<script>_refersion();</script>
<!-- REFERSION TRACKING: END -->

Step 2 - Tracking Orders

In order for us to calculate any commissions owed, each order must be reported to us. You may do so in one of two ways:

Javascript
Client-side Tracking
Send orders to Refersion using Javascript on a "Thank You" page.
Get started →
server
Server-side Tracking
Send orders to Refersion via a JSON webhook in your preferred server-side scripting language.
Get started →