All Collections
Advertiser
Advertiser Knowledge Base
advanced tag Implementation Guide for Advertiser - Shopify
advanced tag Implementation Guide for Advertiser - Shopify
Heiko Vogelgesang avatar
Written by Heiko Vogelgesang
Updated over a week ago

In addition to our general instructions for installing the advanced tag, this page contains a detailed explanation of how to integrate it into Shopify stores.

For Shopify stores you should add the code to two different places, your theme and into the checkout.

Code for theme.liquid file

Should be added to the bottom of your theme.liquid file before the closing body tag (</body>). Don't forget to replace your advanced tag id.

<script type="text/javascript" charset="utf-8" src="https://ad4m.at/[your_advanced_tag_id].js"></script>
<script type="text/javascript" charset="utf-8">
ADVANCEDSTORE_MAGICTAG.config({
rtOptout: false,
pageType: "{{ template }}",
pageUrl: "{{ canonical_url }}"
});
</script>

Code for the Checkout

From your Shopify admin, go to Settings > Checkout.

Under Order processing, go to the Additional scripts text box and paste this tracking code. Don't forget to replace your advanced tag id.

<script type="text/javascript" charset="utf-8" src="https://ad4m.at/[your_advanced_tag_id].js"></script>
<script type="text/javascript" charset="utf-8">
ADVANCEDSTORE_MAGICTAG.config({
rtOptout: true,
orderValue: {{ total_price | money_without_currency }},
orderId: {{ order_number }}
});
</script>
Did this answer your question?