Duplicate a dataLayer variable into two data sources

Silver Contributor
Silver Contributor
I want to use a dataLayer variable with two diferent purposes in Google Analytics tag setup. How should I do that? DataLayer tab doesn´t let to have the same with two different names.
6 REPLIES 6

Duplicate a dataLayer variable into two data sources

Employee Emeritus
You can map a single data layer variable to two outputs in the same tag. It will appear once in the list, but with 2 output mapping lines. In the destination chooser, the point-and-click interface does not allow you to make multiple selections from the list. However, you can just type directly in the text box with a comma between the entries.

Duplicate a dataLayer variable into two data sources

Employee Emeritus
In addition to Fiann's response, you can select one option from the Mapping Toolbox and hit "Apply." Then you can click "Add Destination" next to the new mapping and select the next destination from the Mapping Toolbox. This will help if you don't know the exact value to type into the text field.

Duplicate a dataLayer variable into two data sources

Silver Contributor
Silver Contributor
Thanks for your answers, but I may have explained wrongly :( I have var products_id in my dataLayer, if I map products_id to enh_products_id and products_id, it´s firing impressions where it is not expected..i.e:product_actions. It would be much easier if I could add two UDO variables from same variable in dataLayer.

Duplicate a dataLayer variable into two data sources

Employee Emeritus
Monica, Just to make sure I'm understanding, you would like to use the "products_id" variable from the data layer twice within TiQ. So there would be two instances of "products_id" available within the Tealium interface. Is this an accurate description of what you are trying to do?

Duplicate a dataLayer variable into two data sources

Silver Contributor
Silver Contributor
hi Jared, yes, that´s right :) I had a workaround with "set data values" ext which is working, but I am wondering if there is maybe another easier workaround to do it.

Duplicate a dataLayer variable into two data sources

Employee Emeritus
Hey Monica, This isn't possible at this time. The Set Data Values Extension would be the best route to take. You can define a new variable (products_id2) and set it equal to "products_id." Then you would have two variables that contain the same value.
Public