Use Tealium Tag Manager to Set up DPA Dot Tags¶
This guide describes how you can use Tealium Tag Manager (TTM) to set up and deploy your Yahoo Native Dot tag. Using TTM, you can create a custom script for your native feed ads across your webpages.
If you already have an account with Tealium and are familiar with the Tealium UI, you’ll want to take advantage of this tag manager to set up your Yahoo Dot tags for Dynamic Product Ads.
Setup Steps for Tealium Tag Manager¶
Follow these steps:

Go to the Tags Tab and click +Add Tag.

Enter Yahoo Dot in the search field. Click +Add.

Enter a name in the Title box for the new Dot Tag, the Project ID and the Pixel ID.

Enter any optional Load Rules (note that the default setting is to load the Tag on All Pages) and click Next.

Under Data Mappings, add
ea
andproduct_id
mappings to the tag. Expand the Variables dropdown and click +Add Variable.

Enter ea for the Source and select UDO Variable as the Type.
The UDO Variable type is for variables defined in your Universal Data Object, also referred to as utag_data, which you can find in the code for your webpage.
Click Apply.

Click +Select Destination.

9.Click +Add Custom Destination.



Repeat steps 6-9 for
product_id
.
Click Apply at the bottom of the page once you’ve completed the data mappings.

Click Save/Publish in the top right section of the page.

Enter Notes, select where you want to Publish the tag, and click Publish.

The template needs to be modified to handle the variable
product_id
.
Click the logged in user on the top right section and click Manage Templates.

Select Yahoo Dot: Yahoo Dot: Tag (Profile) UID… from the dropdown.

Look for this code snippet:
if (u.data.ev) {
u.data.qstrings.ev = u.data.ev;
}
And add the following code snippet below it:
if (u.data.product_id) {
if (u.typeOf(u.data.product_id) === "array") {
u.data.qstrings.product_id = u.data.product_id.join(",");
}else{
u.data.qstrings.product_id = u.data.product_id;
}
}
The code snippet above allows the template to handle product_id
in either String or Array formats. If there are multiple product ids, Oath accepts the comma-delimited product id string. (For example: ‘prod1,prod2,prod3’) The code snippet above will convert arrays into comma-separated strings.
Click Save Profile Template on the right section.

Click Save/Publish.

Enter the required information and click Publish.

To deploy the Tealium tag in your website, click the logged in user on the top right section and click Code Center.

Navigate to Prod in the Environments menu for production code and copy the Tealium Script to your website.

Define the
ea
value and theproduct_id
in the Tealium Script on your website.
There are three possible values for ea
:
ViewProduct
AddToCart
Purchase
The value product_id
can be an array or a string.
var utag_data = {
ea : "ViewProduct", //
product_id : "12345" // or [123, 456,789] for multiple Ids
}
Confirm the Yahoo Dot tag for feed ads is fired correctly by using the Yahoo Dot Helper Extension in Chrome.

Important
The Dot Tag Helper Chrome Extension is available for download and installation at Yahoo Dot Helper.