Skip to main content
All CollectionsTracking Implementation (direct integration only)
Implement the Klarna Creator tracking in Woocommerce
Implement the Klarna Creator tracking in Woocommerce
Hanna Mattsson avatar
Written by Hanna Mattsson
Updated over 6 months ago

To complete this guide you need to download and install the premium (Marketer+) Tracking Code Manager to be able to access the variables. If you are able to access and know your way around the source code to get to the variables you probably do not need this guide.

Add the tracking script

First you need to add the tracking script on all pages, go to the plugin list in the menu to the left, find the Tracking Code Manager and click Settings. Then click the CLICK HERE link to start adding tags. It shoulds

Copy paste the link to the script beneath:

<script type="text/javascript" defer="" src="https://conversion.klarnaservices.com/kc.js"></script>

Select Position inside the code as After <BODY>, Standard code tracking in your Wordpress and below that In the whole website (pages, posts and archives). Here is what the form should look like:

Please note the image includes our old tracking script, the one above is the correct one, but result and reference is the same

For all websites it's important that the cookie follow along on any redirects made between different domains. Please see separate guide to ensure this is implemented correctly: COOKIE DECOR ON REDIRECTS

Add the Conversion tag

Now we have setup the tracking script which will now trigger on all pages in the store. Now we need to add the tracking object parameters which will supply the script with the order_id, order_value and currency. For Tag Manager Premium there are specific variables for this, copy paste the snippet below and register the new script like this.

<script> 
var APPRL={};
APPRL.Tracking={};
APPRL.Tracking.Sale={};
APPRL.Tracking.Sale.order_id='@@ORDERID@@';
APPRL.Tracking.Sale.order_value='@@AMOUNT@@';
APPRL.Tracking.Sale.currency='@@CURRENCY@@';
</script>
<script type="text/javascript" defer="" src="https://conversion.klarnaservices.com/kc.js"></script>


Select Track conversion in your WooCommerce and save. This should be it!

Did this answer your question?