TOC:

  • Basic retargeting pixel
  • Integration in a container tag solution
  • Extended (dynamic) retargeting pixel
  • Examples

For our basic retargeting you just need to implement one simple line on every page of your site without any condition.

Basic retargeting pixel

<script type="text/javascript" charset="utf-8" src="https://ad4m.at/[your_advanced_tag_id].js"></script>

Simple as that! However, to allow us to achieve the best possible performance we highly recommend to place this code directly in your page and add some more information to the pixel. This is described below. 

Integration in a container tag solution

If for some reason it's not possible to place the advanced tag code directly on your page, because you're using a container tag solution like Google Tag Manager, please pass dynamically the current page url to the config.

Generic Example:

<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({
    pageUrl: "https://www.example.com/..."
});
</script>

Google Tag Manager Example:

<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({
    pageUrl: {{Page URL}}
});
</script>

Extended (dynamic) retargeting pixel

In order to be able to target the visitors of the site even more specifically and increase the quality of the campaigns, we recommend to additionally fill in the following parameters. If any of the information is not available, simply leave the parameter empty.

<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,
    orderValue: "",
    orderId: "",
    pageType: "",
    pageUrl: "",
    productId: "",
    productCategory: ""
});
</script>

Explanation of all parameters

Name: rtOptout
Description: Indicates to stop retargeting. Set to true if the user bought something or finished the registration. Otherwise set to false.
Type: Boolean
Example: false

- - -

Name: orderId
Description: Unique ID of the conversion. Usually the order number of your system.
Type: Integer
Example: 1234564798

- - -

Name: orderValue
Description: Sales value of the conversion.
Type: Integer
Example: 19.19 

- - -

Name: pageType
Description:
Type of page the user is currently viewing. Possible values: "product", "category", "cart", "checkout" or "other"
Type: String
Example: cart

- - -

Name: productCategory
Description:
ID or name of viewed category.
Type: String or Integer.
Example: 987

- - -

Name: productID
Description:
ID or name of viewed product. For more than one product, please use a comma separated list.
Type: String or Integer.
Example: 123
Example
: "abc123,def456,ghi789"

- - -

Name: pageUrl
Description:
URL of the current page
Type: String
Example: https://www.example.com/subfolder/page
(Only needed if the advanced tag is not directly integrated into the page, read "Integration in a container tag solution")

If you have any question during the implementation feel free to get in contact directly. In our live chat also technical support by developers is provided.

Examples

Example for a product page:

...
<script type="text/javascript" charset="utf-8">
ADVANCEDSTORE_MAGICTAG.config({
    rtOptout: false,
    orderValue: null,
    orderId: null,
    productId: 123456,
    productCategory: 123,
    pageUrl: "https://www.example.com/..."
});
</script>

Example for a category page:

...
<script type="text/javascript" charset="utf-8">
ADVANCEDSTORE_MAGICTAG.config({
    rtOptout: false,
    orderValue: null,
    orderId: null,
    productId: null,
    productCategory: 123
});
</script>

Example for an order confirmation page:

...
<script type="text/javascript" charset="utf-8">
ADVANCEDSTORE_MAGICTAG.config({
    rtOptout: true,
    orderValue: 12.23,
    orderId: 123456,
    productId: null,
    productCategory: null
});
</script>
Did this answer your question?