In order to properly track sales, our servers need to be able to detect the presence of, and if found, read a cookie which we've placed earlier from the visitors browser so that our software can give credit to an affiliate for referring a customer. To this end, we quite often need the cooperation of the shopping cart / payment processor to achieve this goal, as our software also needs to be sent specific information so that it can calculate commissions based upon the sales, if it detects that the sale was referred by a publisher (affiliate).

When a sale is successful (i.e., payment has been approved), we need the sales amount (and preferably a unique invoice number as well) sent to our software via either a link (HTTP GET request), or a form submission (HTTP POST). This is most commonly achieved by one of the two following methods:

  1. To integrate with our software using the HTTP GET method, our sales tracking software needs to be called, with certain parameters, when the order finalization page (often called a 'receipt', or 'thank you' page) is displayed. This is accomplished by calling our software the way you would for an image, using a small snippet of HTML code. For example, if there's an order with the sale amount '19.95', and an invoice number of 11001, then our software should be called like this:

    <img src=";amount=19.95"/>

    This is also sometimes referred to as "pixel tracking".
    Note: Your tracking code should be taken from your own advertiser admin panel.

  2. To integrate with our software using the HTTP POST method, you must post the parameters mentioned above to our logging script, most commonly using an HTML form. For example:

    <form action="" method="POST">
    <input type="hidden" name="amount" value="39.95" />
    <input type="hidden" name="id" value="110001" />
    <input type="submit" value="Click to Continue" />

    This would log a sale of $39.95, with the order ID # '11001'.

    Note: Your tracking code should be taken from your own advertiser admin panel. Also there should be set up Redirection URL to your Thank You page in tracking code settings (under Inventory -> Conversion Tracking Codes -> List Conversion Tracking Codes -> Edit (for the used code) -> Tracking Code tab).

While the two methods mentioned above are by far the most commonly used methods for integration, they are not the only ways we can integrate with a shopping cart or credit card proccessor. If the above methods are not possible for you, please contact us and we can discuss how else we might be able to work with your e-commerce solution.

For integration testing guide see here.