Tracking code integration

How to integrate your tracking code (general solution)

This tutorial explains how to integrate the AffiliationSoftware’s tracking code into your website.

IMPORTANT: This tutorial is exclusively for those who DO NOT use an e-commerce or a CMS listed on this page and for those who have developed their website. Some knowledge of HTML is required.


STEP 1

Generate your own tracking code from this page:

Admin panel > Settings > Tracking

STEP 2

Copy and paste your tracking code into the “thank you page” of your website.

The “thank you page” is the page shown to the users right after the purchase.

The tracking code is invisible to the users and can be placed anywhere in the page, between the <body> and </body> tags.


STEP 3

In the case of percentage commissions, the exact amount of the sale should be entered in the “v” parameter of the trakcing code. It is on this amount that the percentage for the affiliate will be calculated.

To better recognize commissions, you can also enter an identifying string in the “o” parameter, for example the order number.

<!-- AffiliationSoftware.com - Start of tracking code -->
<img src="https://YOURSITE.affiliationsoftware.com/tracking?v=119.95&o=ordine1234&f=p" alt="" width="1" height="1" style="border:0" />
<!-- AffiliationSoftware.com - End of tracking code -->

These parameters can also be added dynamically, for example with PHP:

<!-- AffiliationSoftware.com - Start of tracking code -->
<img src="https://YOURSITE.affiliationsoftware.com/tracking?v=<?php echo( $importo ); ?>&o=<?php echo( $ordineNum ); ?>&f=p" alt="" width="1" height="1" style="border:0" />
<!-- AffiliationSoftware.com - End of tracking code -->

See all tracking code’s parameters


STEP 4

Done! When an affiliate refer a sale, AffiliationSoftware will recognize him and assign the respective commission automatically.

To verify if your tracking code is working correctly you can do a test by following this guide.


EXAMPLE

Here is an example of “thank you page” with the tracking code of AffiliationSoftware.

<html>
<head>
<title>Thank you for your order</title>
</head>
<body>
<h1>Thank you for your order</h1>

<!-- AffiliationSoftware.com - Start of tracking code -->
<img src="https://YOURSITE.affiliationsoftware.com/tracking?v=119.95&o=order1234&f=p" alt="" width="1" height="1" style="border:0" />
<!-- AffiliationSoftware.com - End of tracking code -->

</body>
</html>