You need to add custom parameters to your JavaScript UET tag tracking code for dynamic remarketing. If you haven't already added the UET tag tracking code to your website, take a look at How do I add a UET tag to my website?
Add the following JavaScript to the end of the UET tag tracking code in each page of your website:
<script>
window.uetq = window.uetq || [];
window.uetq.push ('event', '', {'ecomm_prodid': 'Replace_with_Product_ID', 'ecomm_pagetype': 'Replace_with_Page_Type'});
</script>
In the above JavaScript, change the following parameters:
Important
- A user and product ID combination can exist in one or more of the following lists: Product searchers, Product viewers, and Cart abandoners.
-
Once a user/product ID is added to the Past buyers list, they are removed from all of the previous four lists. The 'ecomm_pagetype': 'purchase' is required on the purchase page to remove a user from the other lists for that product ID.
- Similarly, once a user/product ID is added to any one of the following lists, they are removed from General visitors: Product searchers, Product viewers, and Cart abandoners.
To see an example of a dynamic remarketing UET tag tracking code installed in the body of a webpage, visit this webpage (English only), right-select in the webpage, and then select View source or View page source depending on your browser. On this page, you can also define a product ID and page type, and then select a button to trigger a custom event for this dynamic remarketing list. If you use a third-party monitoring tool like Fiddler, you can see the HTTP request generated to bat.bing.com to report each custom event.
Notes
- As your webpage loads, it triggers the UET tag, resulting in a number of HTTP requests. The most important request is to "bat.bing" (the one that looks like http://bat.bing.com/action/0?ti=...). This request tells Microsoft Advertising about the user visits to your webpage. You can use third-party tools such as Fiddler to monitor all the requests that your browser is making when your webpage loads.
-
For custom events, an additional HTTP request is triggered to report the same to Microsoft Advertising. The request is similar to the bat.bing but it has different parameters to report custom event (as opposed to just page visit).
- You can validate that your dynamic remarketing UET tag tracking codes are working using the UET Tag Helper.