Setting link_obj

Bronze Contributor
Bronze Contributor

How can I set the link_obj.className from Link Tracking ext. to a UDO variable, then fire an event based on the value?

2 REPLIES 2

Setting link_obj

Gold Contributor
Gold Contributor

Hi @rdonahue ,

You will be able to store the data from link_obj into a UDO variable by using 'b' object.  'b' object is a javascript variable which holds the most recent copy of datalayer.

To learn more about the 'b' object : https://docs.tealium.com/platforms/javascript/data-layer-object/

Create a UDO variable to store your link_obj (Ex: link_obj_classname)

Create a set-data value extension, scope as before-load-rules  to capture the link_obj from 'b' and store it in your UDO variable.

Link_Obj.JPG

Once created the extension, you will be able to reference your UDO variable in your other extensions / load rules to fire the tags base on your value / set the the values.

link_obj_class_name.JPG

Its Not Who I am Underneath, but What I Do That Defines Me

Setting link_obj

Bronze Contributor
Bronze Contributor

Thanks! thats the extra step I was looking for.