 |
Advanced Tracking Code - Purchases Parameter |
The PURCHASES parameter within the advanced tracking code passes the breakdown of the purchase the customer made. Using this information we can work out the total order value, which is used to apply the correct commission rate, and also to provide our product based reporting. There are two ways to pass the order breakdown to us; you should use whatever method better integrates with your system. |
Example Purchase |
To help explain the syntax we will use a example purchase, the details of which are shown below. |
Quantity Purchased |
Product ID |
Item Price |
Sub Total |
1 |
12345 |
£14.99 |
£14.99 |
2 |
ABCDE |
£11.99 |
£23.98 |
1 |
98765 |
£5.99 |
£5.99 |
Total Order Value |
£44.96 |
|
Syntax Option #1 |
PURCHASES=PRODUCT_ID,ITEM_SUB_TOTAL|PRODUCT_ID,ITEM_SUB_TOTAL |
The PURCHASES parameter contains the Product ID of the product purchased, followed by a comma, followed by the sub total spent on that product. For multiple products purchased this is repeated separating each item by a pipe (|) character. Using the above example purchase the PURCHASES parameter would be the following. |
Example: PURCHASES=12345,14.99|ABCDE,23.98|98765,5.99 |
Syntax Option #2 |
PURCHASES=PRODUCT_ID,PRODUCT_ID&PRODUCT_ID=ITEM_SUB_TOTAL&PRODUCT_ID=ITEM_SUB_TOTAL |
The PURCHASES parameter contains a comma separated list of the Product IDs purchased. In addition to this a separate parameter is added to the query string for each Product ID with the value being the sub total spent on that product. Using the above example purchase the PURCHASES parameter and the additional parameters would be as follows. |
Example: PURCHASES=12345,ABCDE,98765&12345=14.99&ABCDE=23.98&98765=5.99 |
|
 |
|