Partner
A next generation CMS which combines web publishing tools, blogging, and ecommerce with enterprise collaboration platform.
Emerging PHP ecommerce framework that helps you increase sales. Feature-rich PHP shopping cart solution & ecommerce framework developed in 2013—2014. One of the leading shopping cart solutions of Russia.
The integration is done by a tracking script directly placed into the store design section. You can track total cost, order ID, per product items and currency.
per order tracking
Login to your admin area of Shop-Script 5 and navigate to Shop (the top icon) and then to Storefronts tab.
In the list of files find checkout.success.html and place the tracking code above this line ‘{if !empty($payment)}’:
<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('{$order.total}');
sale.setOrderID('{$order.id}');
sale.setCurrency('{$order.currency}');
{if empty($payment_success)}
sale{$smarty.foreach.pap.iteration}.setStatus('P');
{/if}
PostAffTracker.register();
</script>
Save your work and you are done. Order will be tracked now.
per product tracking
In case you want to track orders per product (into different campaigns) you have to use the following code instead of the one from the first step.
<script id="pap_x2s6df8d" src="https://URL_TO_PostAffiliatePro/scripts/trackjs.js" type="text/javascript"></script>
<script type="text/javascript">
PostAffTracker.setAccountId('Account_ID');
{foreach $order.items as $item name=pap}
var sale{$smarty.foreach.pap.iteration} = PostAffTracker.createSale();
sale{$smarty.foreach.pap.iteration}.setTotalCost('{$item.price * $item.quantity}');
sale{$smarty.foreach.pap.iteration}.setOrderID('{$order.id}({$smarty.foreach.pap.iteration})');
sale{$smarty.foreach.pap.iteration}.setProductID('{$item.product_id}');
sale{$smarty.foreach.pap.iteration}.setCurrency('{$order.currency}');
{if empty($payment_success)}
sale{$smarty.foreach.pap.iteration}.setStatus('P');
{/if}
PostAffTracker.register();
{/foreach}
</script>
That’s it. Your store has been integrated.
Do not forget to integrate your cart with the click tracking code – you can use the design section again, place the click tracking code to the index.html file.
BreezingForms (Joomla! Extension)
Create a function for the onclick event in Joomla, then track the code. After clicking submit, a new lead is generated.