Code Instructions

 
 

Click Tracking Code:  This piece of code allows us to track the clicks that come from The People Label network.  Because it should be on every page of your website, the best place to paste the blow code it is in your website footer. 

 

<script type="text/javascript">
document.write(decodeURI("%3Cscript id='pap_x2s6df8d' src='" + (("https:" == document.location.protocol) ? "https://" : "http://") + 
"tellabetterstory.postaffiliatepro.com/scripts/d8fxxl3ojk' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
PostAffTracker.setAccountId('325659b2');
try {
PostAffTracker.track();
} catch (err) { }
</script>

 

(The footer file is in a different place depending on your theme - most likely in your theme liquid files. Look for the "liquid" code and edit the HTML/CSS code, then simply copy and paste into it the tracking code from your dashboard.  Then save it!)


Sales Tracking Code:  This piece of code allows us to track the sales that come from The People Label network.  It should be placed in the Order Confirmation Page.  Go to Settings -> Checkout -> Additional Content & Scripts and paste the code below into the Order Processing section.

 

<script type="text/javascript">
document.write(unescape("%3Cscript id=%27pap_x2s6df8d%27 src=%27" +
(("https:" == document.location.protocol) ? "https://" : "http://") + "tellabetterstory.postaffiliatepro.com/scripts/d8fxxl3ojk%27 type=%27text/javascript%27%3E%3C/script%3E")); 
</script>
<script type="text/javascript">
PostAffTracker.setAccountId('325659b2');

var sale = PostAffTracker.createSale();
sale.setTotalCost('{{subtotal_price | money_without_currency | replace: ',', '' }}');
sale.setOrderID('{{order_number}}');
sale.setProductID('{{product_ids}}');

PostAffTracker.register();
</script>