Setup of tracking code for DanDomain Classic Webshop
If you use DanDomain Classic Webshop you can follow this guide for easy installation of our tracking code on your e-commerce platform:
Base script for DanDomain Classic Webshop
1. In your DanDomain admin panel, under the Settings menu, click on the Site submenu.
2. Select your current site and click on the pen to edit.
3. Scroll down to "Code field (head section)" and paste the following code snippet:
<script src='https://addrevenue.io/track.js'></script>
When done, it should look like this:
4. Click Save.
Conversion script for DanDomain Webshop
1. In your DanDomain admin panel, under the Design menu, click on the Texts / Buttons submenu.
2. Scroll down to the Content pages and find the page "Order step 4 (Order confirmation)". Click on the row.
3. Scroll down to the Code field, and paste the following code snippet:
<script>
var amountArray = ('[[SubTotalExclShippingAndPaymentFeesExclVAT]]').split(' ');
var amount = amountArray[0];
var currency = amountArray[1];
var orderId = [[OrderID]];
ADDREVENUE.sendEvent('Purchase', {'value': amount, 'currency': currency, 'orderId': orderId});
</script>
NOTE! Note that this script does not work if you have set whitespaces as a thousands separator. Contact us and we will help you with a tailor-made solution in that case.
When done, it should look like this:
4. Click Save.
5. Your tracking code is now 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.
Konvertringsscript för DanDomain Hosted
In the newer hosted solution for DanDomain, the variables are written a little differently and there is also a ready-made variable for the amount excluding VAT and excluding shipping. The conversion script is thus much easier:
<script>
ADDREVENUE.sendEvent('Purchase', {'value': %OrderTotalExclVatExclFee%, 'currency': '%OrderCurrencyISO%', 'orderId': '%OrderId%'});
</script>
Create account
By submitting I accept addrevenue.io's terms of use and privacy policy.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.
By submitting I accept addrevenue.io's terms of use and privacy policy.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.
By submitting I accept addrevenue.io's terms of use and privacy policy.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.
Choose the account type that best suits your profile