We have over 10 Adwords tags. How can we consolidate them into one tag?

colin_gardiner
Rookie Contributor
colin_gardiner
 
4 REPLIES 4

We have over 10 Adwords tags. How can we consolidate them into one tag?

fiann_ohagan
Employee Emeritus
fiann_ohagan

Hi Colin,

 

The best way to do this is to use a Lookup Table extension. https://community.tealiumiq.com/t5/Tealium-iQ/Lookup-Table-Extension/ta-p/13708 For an Adwords remarketing tag, you generally have one field which you want to map to the tag, which is the conversion label. So here are the steps you want to take:

 

  1. Create a new Adwords tag and set the load rule to All Pages.
  2. Create a new Data Source called adwords_conv_label and map this to the conversion label on the Adwords tag.
  3. Create a Lookup Table extension. Set the scope to your Adwords tag. The input can be whatever you want but it will usually be the url pathname or possibly a page category variable from your data layer. The output is the adwords_conv_label variable. If you have a few to fill in, it may be easier to set up the data in an Excel spreadsheet and then upload it to Tealium as a CSV file.
  4. Finally, create a second extension of type JavaScript Code, and again set the scope to the Adwords tag. Make sure that it comes after the lookup table in the list of extensions (you can drag-and-drop to reorder them). This will make sure that the tag doesn't fire if there is no entry in the lookup table that matches the current page. Put this code in the extension: if (b.adwords_conv_label === "") { return false; } The return false tells Tealium not to fire this tag.

 

I hope that gets you started, but if you need some assistance setting this up then reach out to your Account Manager and they'll be able to help out.

Highlighted

We have over 10 Adwords tags. How can we consolidate them into one tag?

son_hoang
Employee Emeritus
son_hoang
Fiann's answer is great, but if you want to fire more than 1 of these on a page, the easiest approach is to have separate tag instances. Fiann's approach would fire one Adwords tag at any given time.

We have over 10 Adwords tags. How can we consolidate them into one tag?

colin_gardiner
Rookie Contributor
colin_gardiner
Hey Son, yeah you are right. What I am really hoping for is a way to use the lookup table for one tag and to do a lookup by the account value and then fire the tag with the Adwords account dynamically inserted.

We have over 10 Adwords tags. How can we consolidate them into one tag?

fiann_ohagan
Employee Emeritus
fiann_ohagan
If you want to fire more than one Adwords tag on the same page, then the lookup table won't work. If you have two values you want to look up (e.g. a conversion id and an account value) then there is a solution but it's a bit of a hack. You can put both values in the output field of the lookup table with a separator like this: 123|xyz. Then you can use a second extension, either a Set Data Value extension or JavaScript code equivalent, to split on the | separator and populate two separate values. It's a bit more complicated but it can still be easier than managing a large number of separate tag instances, so we sometimes do this for Floodlight tags where you need to have a different type and category for each instance.