Access the link_obj values sent to the data layer with the link tracking extension

Gold Contributor
Gold Contributor

Is there a way to access the link_obj passed with the link tracking extension? I noticed it is not one of the available ouputs in Tealium, and yet and utag.link event sent link_obj when a link is clicked.

3 REPLIES 3

Access the link_obj values sent to the data layer with the link tracking extension

Tealium Employee

@audrey_poulin

 

You can indeed. All you need to do is add the variables into the the Data Sources tab. Here is a CSV list you can use to add them. I will raise a request to allow these to be added via a bundle.

 

"link_obj", "UDO Variable" 
"link_text", "UDO Variable" 
"link_url", "UDO Variable" 
"link_type", "UDO Variable" 
"event_name", "UDO Variable" 

At this point, you can access them via the use of the "b" object in extensions.

 

Adrian

Ask me anything Tealium related or TypeScript/JavaScript, or NodeJS.
Please remember to mark solutions as accepted for future searchers.

Access the link_obj values sent to the data layer with the link tracking extension

Tealium Employee

Just to add to my previous comment. Once these data points have been defined you will be able to use them. 

 

b.link_text
b.link_url
etc.

However as the link_obj is an HTML element, if you want to get anything from that you will need to reference it like:

 

b.link_obj.host

Adrian

Ask me anything Tealium related or TypeScript/JavaScript, or NodeJS.
Please remember to mark solutions as accepted for future searchers.

Access the link_obj values sent to the data layer with the link tracking extension

Gold Contributor
Gold Contributor

Sorry I took so long to answer! Thanks for this second post, that solves the question I had!

 

Public