Setup of tracking code for Quickbutik

If you use Quickbutik, you can follow the guide below to easily install our tracking code in your webshop:

Base script for Quickbutik

1. In your Quickbutik control panel, click Settings > Custom scripts. If the feature is not enabled, you need to do so first.

2. Click the "Add script" button.

3. Under "Name" enter e.g. "Addrevenue Base script" and under "Content" paste the code snippet below. Leave the content type at "Auto mode".

<script async src='https://addrevenue.io/track.js'></script>

4. Click Save.

Conversion script for Quickbutik

1. In your Quickbutik control panel, under Settings > Analytics and tracking click Open.

2. Scroll down to the field "Egna scripts på kvitto/tack-sidan (t.ex konverteringspixlar från Google)". Copy and paste the following snippet:

<script src='https://addrevenue.io/track.js'></script>
<script>
    var products = [];
    {{#order.items}}
    products.push({
        id: "{{product_id}}",
        sku: "{{sku}}",
        name: "{{title}}",
        variant_id: "{{variant_id}}",
        variant_name: "{{variant}}",
        price: {{price_raw}} * 0.8,
        quantity: {{qty}}
    });
    {{/order.items}}

    ADDREVENUE.sendEvent("Purchase", {
        value: parseFloat({{order.value_excl_tax}} - ({{order.shipping_amount}} * 0.8)),
        currency: "",
        orderId: "",
        products: products
    });
</script>

 

3. Click Save.

4. Now your tracking code is installed. Once you have installed the tracking code, we want you to make a test purchase. See our Test purchase guide for step-by-step and troubleshooting help.

 

Back