Campaign

Setting up the retargeting pixel

Author

Tom Wendt

30 Apr 2026

Learn how to integrate the AdUp Retargeting Pixel, track user interactions, and transmit product data for personalised retargeting campaigns.

Prerequisites

To use the Retargeting Pixel, you need:

  • an active campaign

  • a product feed

  • the AdUp Retargeting Pixel

  • identical product IDs in tracking and the product feed

Important: The transmitted product IDs must exactly match the IDs in your product feed. Only then can users be shown the matching products again later.

Integration in three steps

Step 1 – Integrate Retargeting API

Embed the JavaScript file once in the <head> of your website.

<script async src="https://s.d.adup-tech.com/services/retargeting.js"></script>

Note: The script must only be loaded once per page view.

Step 2 – Initialize callback

After loading,

window.AdUpRetargeting()

is automatically called.

The entire tracking logic takes place within this function.

window.AdUpRetargeting = function(api) { // Tracking};

Step 3 – Send tracking

Information is collected via various set...() methods and then transmitted via a track...() method.

Example:

api.setAccount(1234).setProduct(["ABC123","DEF456"]).trackProductList();

What information can be transmitted?

Account details

Method

Description

setAccount()

Advertiser ID

User details

Method

Description

setEmail()

Email address (is automatically hashed)

setHashedEmail()

Already hashed email address

Search parameters

Any search parameters can be transmitted with setSearch().

For example:

  • Travel dates

  • Number of people

  • Rooms

  • Filters

  • Categories

These values can be used later for segmentation or personalisation.

Product information

The relevant products are transmitted with setProduct().

The following are supported:

  • single product ID

  • multiple product IDs

  • product objects with price and quantity

Transactions

setTransaction() adds order information to the tracking.

Optionally, further information such as new customer or order number can be added.

Devices

The device type is usually detected automatically.

If required, it can be set manually:

  • setMobile()

  • setTablet()

  • setDesktop()

Conversion

Additionally, a conversion can be recorded via

setConversionCode()

.

GDPR

If no TCF API is available, consent information can also be transmitted manually via

setGdpr()

.

Available tracking methods

Different tracking methods are used depending on the page type.

Method

Use

trackHomepage()

Homepage

trackProductList()

Category and search results

trackProductPage()

Product detail page

trackBasket()

Shopping basket

trackSale()

Order or booking confirmation

Recommended implementation

Homepage

api.setAccount(1234).trackHomepage();

Category

api.setAccount(1234).setProduct(["ID1","ID2","ID3"]).trackProductList();

Product detail

api.setAccount(1234).setProduct("ID1").trackProductPage();

Shopping basket

api.setAccount(1234).setProduct([ { id:"ID1", price:49.90, quantity:2 }]).trackBasket();

Checkout

api.setAccount(1234).setProduct([...]).setTransaction("ORDER123").setConversionCode("SALE").trackSale();

Optionally, users or products can subsequently be removed from retargeting:

.setDemarkProducts()or.setDemarkUser()

Best Practices

  • Only load the Retargeting API once per page view.

  • Use the same product IDs as in the product feed.

  • Only track the products actually visible on category and search pages.

  • Add order details on the confirmation page.

  • Use conversion codes for more accurate performance measurement.

  • Only remove users or products from retargeting after a purchase if this tallies with your campaign strategy.

Conclusion

The AdUp Retargeting Pixel forms the basis for personalised retargeting campaigns. Through the combination of product feed, user interactions, and conversion tracking, advertisements can be automatically tailored to the actual interest of the users and displayed along the customer journey.