
General solution - Asynchronous
Would you like to improve your affiliate software even more? Check out the General solution - Asynchronous integration for Post Affiliate Pro.
Learn how to integrate General Solution Software with Post Affiliate Pro using JavaScript or hidden image tracking for advanced commission tracking across various merchant accounts and payment gateways.
The general method of integration is putting an invisible JavaScript code or image anywhere in the “thank you for order” or order confirmation page that is displayed to the customer after the payment is processed.
Post Affiliate Pro is compatible with nearly ALL merchant accounts, payment gateways, shopping carts and membership systems.
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.
The general method of integration is putting an invisible JavaScript code or image anywhere in the “thank you for order” or order confirmation page that is displayed to the customer after the payment is processed.
JavaScript version of integration code is generally recommended, because it allows using advanced tracking techniques.
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.
<script id="pap_x2s6df8d" src="https://URL_TO_PostAffiliatePro/scripts/trackjs.js" type="text/javascript"></script>
<script type="text/javascript">
PostAffTracker.setAccountId('Account_ID');
var sale = PostAffTracker.createSale();
sale.setTotalCost('120.50');
sale.setOrderID('ORD_12345XYZ');
sale.setProductID('test product');
PostAffTracker.register(); </script>
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.
Image version of integration code can be used if for some reason you cannot or don’t want to use JavaScript tracking.
<img src="https://URL_TO_PostAffiliatePro/scripts/sale.php?TotalCost=120.50&OrderID=ORD_12345XYZ&ProductID=test_product" width="1" height="1" />
The parameters TotalCost, OrderID and ProductID have the same sense as in JavaScript code.
These two methods (JavaScript and Hidden Image) do the same, JavaScript version has slightly better reliability because of more advanced techniques tha can be used.
It is a method to connect your website, shopping cart, or payment gateway to Post Affiliate Pro using invisible JavaScript or image tracking codes, enabling advanced affiliate tracking and commission creation.
You can use a JavaScript integration code for advanced tracking or a hidden image code if JavaScript is not available. Both methods allow the affiliate system to register sales and assign commissions.
The main parameters are Total Cost (mandatory for percentage commissions), Order ID (optional for cross-checking), and Product ID (optional for campaign recognition).
Lucia is a talented content editor who ensures the seamless publication of content across multiple platforms.
Discover how integrating General Solution Software with Post Affiliate Pro can streamline your affiliate tracking and commission management. Start your free trial today or schedule a call for personalized assistance.
Would you like to improve your affiliate software even more? Check out the General solution - Asynchronous integration for Post Affiliate Pro.
Learn how to integrate CommerceGate with Post Affiliate Pro for seamless online payment processing, lifetime commissions, and secure affiliate management. Enhan...
Discover how our expert team can seamlessly integrate Post Affiliate Pro with your e-commerce website and payment processor. Learn about our free integration se...