EKM integration
Create your own successful online shop. EKM automatically evolves, optimises and improves to maximise your success.
Add sale tracking code
In your EKM admin panel go to Settings and under Checkout section click on ‘Edit Order Complete Messages‘. Once on the Order Complete Messages screen you need to edit all your Success messages. When editting you need to switch to Source view and insert the following code:
<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('[ekm:subtotal_number_only][/ekm:subtotal_number_only]');
sale.setOrderID('[ekm:order_number][/ekm:order_number]');
sale.setData1('[ekm:customer_email][/ekm:customer_email]');
PostAffTracker.register();
</script>
If you’d like to pass additional info please consult EKM’s resources.
Click tracking code integration
Don’t forget to integrate also the click tracking code from your Post Affiliate Pro from Tools->Integration->Clicks tracking. You need to place this code to a special section in EKM.
Go to Design and click the ‘Edit‘ button under Theme section and select the option to Inject Custom Code. On the next page check the checkbox ‘Enable Alternative Code Injection’ located under the HTML Head Code textarea and then insert the click tracking code to the new textarea which appeared called After Code and save it.