link_text sitecatalyst utag.link

Silver Contributor
Silver Contributor

Hello,

 

How can I do to set the link_text dinamically. For example, if I have an utag.link with this parameters:

 

utag.link({
pageName: "home",

product: "car"
})

 

And I do not have the link_text in the parameters of utag.link but I want to map the key "product" always in link_text, how could I do?

 

Thank you in advance!

2 REPLIES 2
Highlighted

link_text sitecatalyst utag.link

Tealium Employee

@jmillan

 

Looking at the template, they way you would achieve this is to, using a Set Data Values Extension set a UDO variable called "link_text" to product value.

 

adobe_analytics_link_text.png

Adrian

Ask me anything Tealium related or Javascript, or NodeJS.
Please remember to mark solutions as accepted for future searchers.
Highlighted

link_text sitecatalyst utag.link

Silver Contributor
Silver Contributor

It works! thank you so much Adrian!