Post Affiliate Pro is compatible with nearly ALL merchant accounts, payment gateways, shopping carts and membership systems.
What integration means
Integration is a way to connect the affiliate system to your current website, shopping cart or payment gateway in a way that affiliate system will be notified about purchases. When notified, affiliate system registers the sale, finds referring affiliate (if any) and creates appropriate commission for him.
Open your order confirmation or “thank you for order” page template, and put the following code somewhere into the page where the parameters in setTotalCost(), setOrderID() and setProductID() should be replaced with correct values.
PostAffTracker.setAccountId('Account_ID'); var sale = PostAffTracker.createSale(); sale.setTotalCost('120.50'); sale.setOrderID('ORD_12345XYZ'); sale.setProductID('test product');
Total Cost (mandatory for % commissions) – price of the product.
Order ID (optional) – can be your unique generated order ID to cross-check the sale.
Product ID (optional) – the ID of the product bought.
All fields are optional, but without Total Cost system will be not able to compute percentage commissions.Also, Product ID is required if you want to recognize campaign by product.
If you need to set total sale cost and order id, but you don’t have access to their values in your “Thank you” page, the situation is more complicated. There is no general solution for this. If you know that you can register sale in some other place, where those values (total cost and order id) are available, you can put the tracking code there. Otherwise, consult us for advice and finding possible solution.
2. Hidden Image integration code
<img src="https://URL_TO_PostAffiliatePro/scripts/sale.php?TotalCost=120.50&OrderID=ORD_12345XYZ&ProductID=test_product" width="1" height="1" />
This is all that is required. Now whenever there’s sale, the sale tracking script sale.php is called, and it will generate commission for the affiliate.