Installing the Retargeting tracking script

❗️ Important
Please note that the Retargeting Ads feature is being deprecated and will be removed from Sendinblue as of March 15, 2021. You will still be able to view your old Retargeting campaign reports until March 30, 2021.

Installing the Retargeting tracking script enables you to track, through SendinBlue, all of the pages visited by your website visitors.

Visitors who complete specific actions, such as visiting a specific page or performing a custom event, can be added to your Retargeting campaign's audience and shown your campaign. 

1. Installing the script

You can use one of two methods to install the tracking script:

  • Installation requiring no technical skills [Strongly recommended]
  • Manual installation [Advanced]

1.1 Installation requiring no technical skills [Strongly recommended]

A - Through the SendinBlue plugin

The script can be activated in just 2 clicks on our WordPress and Prestashop plugins. To do this, you just need to install the SendinBlue plugin on your web editor:

Once the plugin has been installed, you can activate the Automation script by clicking on the "Activate Marketing Automation through SendinBlue" in the plugin settings. You will find more information in the tutorials for installing the plugins.

Example on WordPress:


Example on Prestashop:


B - Using a tag integration solution such as Google Tag Manager

Google Tag Manager allows you to add tags and code snippets to your website without having to manually edit your site's code. To integrate the SendinBlue script to Google Tag Manager you have to:

  1. Log in to your Google Tag Manager account and select the desired content
  2. Create a new tag, which you can name "SendinBlue Retargeting" for example


  1. Select the "custom HTML" tag
  2. Copy the script, which can be located during the first step in creating your Retargeting campaign as shown below. Be sure to copy the entire script, which starts with "<script type="text/javascript">" and ends with "</script>". 


  1. Paste the script in the space indicated in Google Tag Manager retargeting-script_5_EN.png
  1. Select the "All pages" trigger to install this script on all of your website's pages


  1. Save this new tag and then publish the container

And that's it, you've now installed the tracking script on your website through Google Tag Manager.

1.2 Manual installation [Advanced]

If you don't have a WordPress or Prestashop website, or a tag integration solution such as Google Tag Manager, you can manually install the script onto your website.

We strongly advise you to ask your web developer to install the script, which should only take a few minutes.

To do this you need to insert the script into your website. Like with Google Analytics, you have to add your script in the "header" file (e.g. header.php). Insert the script between the <head> and </head> tags.

It's best to install your script just before the </head> closing tag to avoid pasting within another tag. If you don't have a </head> tag, you can add the script just before the <body> tag.

2. Verification

Once the script has been added, check that it works properly by looking at the uploaded data in the Event logs on SendinBlue.

Visit your website to generate some activity, then check to see if "page" data has been uploaded in the event logs.retargeting-script_6_EN.png

Further reading