Setup of tracking code for Google Tag Manager
If you use Google Tag Manager you can follow this guide for installation of our tracking code on your e-commerce platform. Please note that the exact procedure, names of variables and events depend on your setup in GTM.
Base script for Google Tag Manager
1. Create a new tag and name it "Addrevenue - Base tag".
2. Select the "Custom HTML" type.
3. Copy and paste the following code snippet in the "HTML" field:
<script src='https://addrevenue.io/track.js'></script>
4. Add the trigger "All pages - Page View".
When you're ready, it should look something like this:
5. Click Save.
Conversion script for Google Tag Manager
This part differs significantly depending on what your variables are called, whether they were created earlier, what they contain and also which events are triggered on the thank/receipt page.
You need to have a variable for order value excluding VAT and excluding shipping, one for currency and one for order number. Also that you need a trigger to trigger on the acknowledgment/receipt page.
We assume in this example that this already exists.
1. Create a new tag and name it "Addrevenue - Conversion tag".
2. Select the "Custom HTML" type.
3. Copy and paste the following code snippet in the "HTML" field:
<script src='https://addrevenue.io/track.js'></script>
<script>
ADDREVENUE.sendEvent('Purchase', {'value': {{OrderValueExclShippingExclTax}}, 'currency': '{{OrderCurrency}}', 'orderId': '{{OrderNumber}}'});
</script>
Note that the variable name depends on your specific setup in Google Tag Manager!
4. Add a trigger for your purchase event. This can be an event or a page view of the thank you/receipt page.
When it's ready, it should look like this:
5. Click Save.
6. Your tracking code is now ready to be tested. Use the preview function and when everything works you can publish your changes. Once you have installed the tracking code, we would like you to make a test purchase. See our Test purchase guide for step-by-step and troubleshooting help
If you want help installing the script in your existing Google Tag Manager, you can email support@addrevenue.io with full read and write rights, and we'll help!
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