My tickets
 
Submit ticket
 
Login
 
Tracking API
Home
>
Post Affiliate Pro
>
Programmers documentation
>
API
>
Tracking API
Pap_Api_ClickTracker
It is possible to replace standard click tracking using javascript code with PHP version of click tracking. Javascript version looks like this: <script type="text/javascript" id="pap_x2s6df8d" src="https://URL_TO_PAP/scripts/trackjs.js"></script> <script type="text/javascript"> PostAffTracker.setAccountId('default1'); try { PostAffTracker.track(); } catch (err) { } </script> NOTE: URL_TO_PAP has to be replaced with the REAL URL of your installation of Post Affiliate...
Pap_Api_SaleTracker
API provides a way to register sales using PHP. This is an alternative to the General solution you can find in Integration methods. Please make sure that you include the PapApi.class.php before you use this code. Example of registering sale: include_once('PapApi.class.php'); $saleTracker = new Pap_Api_SaleTracker('URL_TO_PAP/scripts/sale.php'); $saleTracker->setAccountId('default1'); //if you need to set customer's IP use this row, otherwise is used IP recognized from $_SERVER['REMOTE_A...