Abicart (Textalk Webshop)

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 to your webshop. To do this, navigate to Appearance> Shop template> Field layout and choose Page Header tab. At the bottom of the page, there is a drop down menu Add content, select 'New own content - HTML' and click Add.
Name the script somehow, e.g. "PAP click tracking code" and 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 Add button and that's it. The click tracking code will now appear in 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 = dataLayer[4].cartCost;
var transId = dataLayer[4].transactionId;
var curr = dataLayer[4].currencyCode;

sale.setTotalCost(total);
sale.setOrderID(transId);
sale.setCurrency(curr);

PostAffTracker.register();
}

setTimeout(function(){trackIt();}, 2000);
</script>

You are done. Save the section and that's it.

As you can see the code directly works with Google's dataLayer .