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 website 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 snippet 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 using JavaScript 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 can find API keys in your Refersion account by navigating to Account > Settings > Refersion API Keys. You may use an existing set of keys or create a new set.
When an endpoint supports browser-based tracking, use only the Public key as documented. Never embed Secret keys in client-side JavaScript or other publicly accessible code — use them only in trusted server-side code, stored in secure secret storage.
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:
Server-side Tracking
Send orders to Refersion via a JSON webhook in your preferred server-side scripting language.
JavaScript v3 tracking is fully deprecated and is documented for reference only. Build new integrations on JavaScript v4 tracking or server-side tracking.
Related
- API Reference — how to obtain an access token, and every endpoint the Refersion API exposes.