Server-to-server tracking allows your server or backend system to directly notify Commission Factory of a valid conversion.
Server-to-server tracking allows your server or backend system to directly notify Commission Factory of a valid conversion. It is also a requirement for integrating with Commission Factory if the conversions do not take place in your customers' web browsers.
There are two parts to server-to-server tracking:
- The Click
- The Conversion
THE CLICK
As part of server-to-server tracking, Commission Factory will generate a unique click ID every time traffic is sent to your website. You can use the supplied shortcodes in your Tracking and Click Append settings to have this click ID sent as part of the URL.
On your website, you will need to retrieve the click ID value from the URL and record it somewhere associated with the customer.
For example, if the customer is already logged in, then you could record the click ID in the customer's account details in your database.
If the customer is not logged in, then you could keep the click ID in a browser cookie temporarily. Later, if the customer goes on to create a new account or logs in to an existing account, you would copy the click ID from the cookie into your database.
It is also important to update the click ID stored in the customer's account details in your database if they click a different link and a new click ID is generated. For any given customer, it is important that you store the most recently generated click ID.
Recording the click ID correctly is important, as you will need it when you later notify Commission Factory of any conversions by that customer.
THE CONVERSION
Once a conversion actually takes place, you will need to connect to Commission Factory and notify our system. This involves connecting to a specific web address and posting JSON-encoded data.
The order or transaction ID, or some other unique identifier. If supplied, must be unique for each conversion.
For full Server-to-Server Tracking documentation go to your Campaign Settings in your Commission Factory account where you will find step-by-step instructions.