The tracking code is required to record conversions resulted from traffic sent by affiliates; it's an essential aspect in running your affiliate program.
The tracking code must be placed on the order confirmation page for short and normal orders, for orders placed with or without an account and for all payment and shipping methods.
There are several tracking code formats depending on the type of affiliate program: leads or sales and depending on the commissioning grid: fixed, percentage or variable.
Sale - percentage commission
Most affiliate programs start with such tracking code.
<iframe height='1' width='1' scrolling='no' marginheight='0' marginwidth='0' frameborder='0' src='//event.2performant.com/events/salecheck?amount=__ADD_SALE_VALUE__&campaign_unique=COD_UNIC_PROGRAM&confirm=COD_UNIC_SECURE_PROGRAM&description=__ADD_DESCRIPTION__&transaction_id=__ADD_TRANSACTION_ID__'></iframe>
Three parameters are sent within this tracking code:
- amount= sends the total value of the sale. The amount reported must not include VAT (TAXES) if the company is paying VAT nor the shipping charges (shipping costs) or other discounts and vouchers.
Consider: The decimal separator must be the dot. Thousands must not be delimited. Commas must not be used (when separating decimals or thousands). Only 2 decimals must be sent. Currency must not be included.
- transaction_id= sends an unique sale ID that identifies the transaction.
- description= sends more information about the transaction (product name, quantity etc.)
Important: it must be URL Encoded.
Sale - variable percentage commission
For online stores with a wide range of products where the margin may vary considerably depending on the category and/or manufacturers, a tracking code may be installed to provide different commissions based on all of the above criteria and others.
<iframe height='1' width='1' scrolling='no' marginheight='0' marginwidth='0' frameborder='0' src='//event.2performant.com/events/salecheck?amount=__ADD_SALE_VALUE__&campaign_unique=COD_UNIC_PROGRAM&com_percent=__ADD_AFFILIATE_SALE_COMMISSION_PERCENT__&confirm=COD_UNIC_SECURE_PROGRAM&description=__ADD_DESCRIPTION__&transaction_id=__ADD_TRANSACTION_ID__'></iframe>
Four parameters are sent within this tracing code. Three of them present in the tracking code for the previous percentage commission, as well as a fourth com_percent=
com_percent= sends the affiliate’s percentage received for a shopping cart (with two decimals). It is necessary to calculate the difference between the percentages according to the established commissioning grid and communicated to all affiliates in the description.
Therefore, if a user buys one product of 10 RON and the commission percentage is 20% and another product of 15 RON with a 10% affiliate commission, the tracking code should send `__ADD_AFFILIATE_SALE_COMMISSION_PERCENT__`14 (without percentage symbol). Thus, 20% from 10 RON means 2 RON commission amount and 10% from 15 RON means 1.5 RON commission amount. Out of the total order of 25 RON, the affiliate receives 3.5 RON, so 14% commission of the total shopping cart value.
((((x*xp)/100)+((y*yp)/100)))/(__ADD_SALE_VALUE__))*100
x= product from a category that has one commission
xp= commission for product x
y= product from a category that has a different commission from product x
yp= commission for product y
Using the above example, the formula should be:
((((10*20)/100)+((15*10)/100)))/(25))*100=14
As an alternative, you can send the commissioning percentage for each product along with the price for each product, encoded for URL.
For the example above, it would be:
amount=[10,15]
com_percent=[20,10]
Sale - fixed commission
This type of tracking code is used for sites that usually sells a just a single product.
<iframe height='1' width='1' scrolling='no' marginheight='0' marginwidth='0' frameborder='0' src='//event.2performant.com/events/salecheck?amount=__ADD_SALE_VALUE__&campaign_unique=COD_UNIC_PROGRAM&confirm=COD_UNIC_SECURE_PROGRAM&description=__ADD_DESCRIPTION__&transaction_id=__ADD_TRANSACTION_ID__'></iframe>
Three parameters are sent within it, the same as the tracking code for percentage commission.
The fixed amount is granted by the platform, based on the information filled in the Settings → General section.
Lead - fixed amount
This type of tracking code is suitable for programs that generate single type leads.
<iframe height='1' width='1' scrolling='no' marginheight='0' marginwidth='0' frameborder='0' src='//event.2performant.com/events/leadcheck?campaign_unique=COD_UNIC_PROGRAM&confirm=COD_UNIC_SECURE_PROGRAM&description=__ADD_DESCRIPTION__&transaction_id=__ADD_TRANSACTION_ID__'></iframe>
Two parameters are sent within this tracking code, following the same principle as in the case of a sale - percentage commission. The parameters in question are: description= and transaction_id=.
Lead - variable amount
This type of tracking code is suitable for programs that generate multiple type leads.
<iframe height='1' width='1' scrolling='no' marginheight='0' marginwidth='0' frameborder='0' src='//event.2performant.com/events/leadcheck?campaign_unique=COD_UNIC_PROGRAM&com_rate=__ADD_AFFILIATE_LEAD_COMMISSION__&confirm=COD_UNIC_SECURE_PROGRAM&description=__ADD_DESCRIPTION__&transaction_id=__ADD_TRANSACTION_ID__'></iframe>
Three parameters are sent within this tracking code, two of them follow the same principle as in the case of sale - percentage commission. The parameters in question are: description= and transaction_id=.
Besides these two, there is another one com_rate= where the value for each lead type must be sent, depending on the established commissioning grid and communicated to all affiliates in the description.
Comments
0 comments
Please sign in to leave a comment.