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 put it is in your website footer.  To add code to your Footer with a WordPress website, it can be helpful to add the "Insert Headers and Footers" Plugin.  Make sure to Activate the Plugin, then go to Settings -> Insert Headers and Footers -> copy and paste the code below and save it.

 

<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('c065d056');
try {
PostAffTracker.track();
} catch (err) { }
</script>

 

Sales Tracking Code:  This piece of code allows us to track the sales that come from The People Label network.  Edit file: 
wp-content/plugins/woocommerce/templates/checkout/thankyou.php and place the following code below line:
<?php do_action( 'woocommerce_thankyou', $order->id ); ?>

 

<script id="pap_x2s6df8d" src="http://tellabetterstory.postaffiliatepro.com/scripts/d8fxxl3ojk" type="text/javascript">
</script>
<script type="text/javascript">
PostAffTracker.setAccountId('c065d056');

var sale = PostAffTracker.createSale();
sale.setTotalCost('<?php echo ($order->order_total - $order->order_shipping); ?>');
sale.setOrderID('<?php echo $order->id; ?>');
sale.setCurrency('<?php echo $order->get_order_currency(); ?>');
PostAffTracker.register();
</script

 

In case you use a custom theme for WooCommerce and the thankyou.php file is located there as well (/themes/your_custom_theme/woocommerce/checkout/thankyou.php), you have to integrate it instead of the default one.