Abicart (Textalk Webshop) integration
A competent, affordable, and easy-to-use platform for e-merchants with ambitions to grow and develop.
Textalk Webshop is the most popular e-commerce platform in Sweden. Textalk Webshop is used by over 2700 online stores. This is largely due to the low price, but also great opportunities.
The integration method uses templates to integrate the website.
It is not possible to use coupons, per product tracking, and lifetime commissions with this tracking method.
1. Click tracking
The first step is to insert the click tracking code into your webshop. To do this, navigate to Store design-> Themes and edit your currently active theme. On the Content tab go to the Site footer menu and add the click tracking script to your footer code.
You can find your click tracking script in your Post Affiliate Pro merchant panel-> tools-> Integration-> Clicks tracking or enter the following code there:
<script id="pap_x2s6df8d" src="https://URL_TO_PostAffiliatePro/scripts/trackjs.js" type="text/javascript"></script>
<script type="text/javascript">
PostAffTracker.setAccountId('Account_ID');
try {
PostAffTracker.track();
} catch (err) { }
</script>
When you are done, click the Save button and that’s it. The click tracking code will now appear on all your shop pages.
2. Sale tracking
The sale tracking code has to be placed to section Settings> Checkout settings> General checkout settings. Find the text area for ‘Text/HTML after completed order’ and paste the following code there:
<script id="pap_x2s6df8d" src="https://URL_TO_PostAffiliatePro/scripts/trackjs.js" type="text/javascript"></script>
<script type="text/javascript">
PostAffTracker.setAccountId('Account_ID');
function trackIt() {
var sale = PostAffTracker.createSale();
var total = 0; var transId = ''; var curr = '';
dataLayer.forEach(element => {
if (typeof element.transactionId === "undefined") {
return;
}
total = element.cartCost;
transId = element.transactionId;
curr = element.currencyCode;
});
sale.setTotalCost(total);
sale.setOrderID(transId);
sale.setCurrency(curr);
PostAffTracker.register();
}
setTimeout(function(){trackIt();}, 2000);
</script>
Save the section and that’s it. As you can see the code directly works with Google’s dataLayer.