All Collections
Publisher Knowledge Base
How to: setup advanced link script
How to: setup advanced link script

Instructions on how to setup the advanced link script correctly

Written by Sascha Hoffmann
Updated over a week ago


Our advanced link script (module) helps you to replace direct links on your website with affiliate links.


You will need an 'advanced Tag'.
You can find the corresponding article "how to create an advanced tag" here

  1. You have to create a module in your tag configuration first to use our advanced link script. Click on the button 'new module'.

2. Please select the module 'link script'
Now you will see the options to create a new module.

It's important to set a clear name for this module to make it comprehensible for you in the future.

3. Please add the trigger "Global - event - target not equals empty"

The remaining fields are optional.
Our recommendation is to deselect the "Singleton" field for the ContentLink module. This is only needed if your website is an SPA (single-page application) or if you want to run it multiple times.

4. Click on "Create" to complete the configuration.

5. Now you have to integrate the snippet into your code.


To integrate the script on your website, you will need your advanced Tag:

<script type="text/javascript" charset="utf-8" src=""></script>

Then you only need to request our module with the help of this snippet:

<script type="text/javascript" charset="utf-8">
target: "Id, Class or Element"

It is required to set a target in which area we should search for links to convert.

Possible settings:

target: "body"
Look for all links in the body container

target: "#blog"
Look for all links in the container with the id blog
<div id="blog"></div>

target: ".container"
Will replace all links in all elements with this class.
<div class="container"></div>

You have multiple options in your dispatch call:

<script type="text/javascript" charset="utf-8">
target: "body",
site: 1,
pageUrl: ""


This is your personal siteID. If you set a site in the advanced Tag itself you can remove this attribute.


If you want to track something particular with the help of our advanced link script, feel free to add a specific subId.


It's important to set a pageUrl to define a specific area. This can be helpful when using our advanced tag in an iFrame with the help of Google's tag manager or any other type of special set-up.


If the script should exclude certain URLs, you can provide them in an array, e.g.: ["",""]


If you prefer to only monetize specific links, you can provide a list of URLs in an array as well, e.g. : ["",""]

Did this answer your question?