Advanced Tracking API

Please Note: For the Advanced Tracking API to function please ensure you enable Append Variables here https://aflite.co.uk/merchants/account/settings.php 

API URL: http://aflite.co.uk/data/register/goal

Expected Variables

Variable Example Description
apikey abc123 Your api key
mid abc123 Merchant ID
clickSessionID abc123 Click ID passed by Aflite to you on each unique click through
goalid abc123 ID of the Goal
mref abc123 Merchant Reference
value 10.99 Value of the Goal
traceOnly 1 or 0 (Optional) will not record goal, data entered into Trace Report. Use when testing tracking installation.
help 1 or 0 (Optional) this help

Variables can be sent to http://aflite.co.uk/data/register/goal as either GET or POST.

When to execute the API

You should execute the API at the point in which the customer has completed the Goal requirements. This can be a sale, sign up or other desired action.

The clickSessionID

Once you have enabled Append Variables here https://aflite.co.uk/merchants/account/settings.php  Clicks originating from an Aflite affiliate will carry two variables that are of use in this API.

Please note that affiliates have the ability to deep link to your website. Therefore for accurate tracking and happy affiliates the collection of the clickSessionID should be site wide.

  • clickSource - Aflite clicks will always have the value 'aflite'. A test for this variable should tell you whether to initiate the storage of the clickSessionID.
  • clickSessionID - This is the unique identity number of the click. You will need to store this for use in the API.

Common tracking flow

  1. Affiliate clicks on link. clickSource and clickSessionID are sent to your server.
  2. The click's landing page checks for the presence of a clickSessionID or clickSource equal to 'aflite'. If present the clickSessionID is stored in a 30 day cookie or if required a database table.
  3. The customer completes a goal action. The presence of the cookie or database entry is tested, if found the aflite API is called passing back the clickSessionID and other variable described above.
  4. Aflite records the goal and determines the commission due

Need more help?

Support Chat
E-mail
Call us
0844 800 9672