If you encounter the JavaScript error "PostAffTracker is not defined" on your website, please ensure that the code has been loaded correctly. In most cases, this error occurs because your store modifies all JavaScript codes (e.g. for compression), which can result in the tracking code becoming malformed. Alternatively, a browser plugin may prevent the code from loading, causing the error.
How to Troubleshoot This Problem (e.g., on the domain https://shop.yoursite.com/)
1. Visit https://shop.yoursite.com/, open your browser's console, and clear it.
2. Refresh the site with the console open and check if there is any additional information about the error.
3. Compare the click tracking code on your site with the version from your merchant panel. You can find the code under Tools > Integration > Clicks Tracking. You can do the same with the sale tracking code similarly.
The code should look like this:
<script type="text/javascript" id="pap_x2s6df8d" src="https://test.postaffiliatepro.com/scripts/0e1wj23ll"></script>
<script type="text/javascript">
PostAffTracker.setAccountId('default1');
try {
PostAffTracker.track();
} catch (err) { }
</script>
If everything appears correct and you are still unable to identify the issue, please contact our live support team for assistance.