Grabbing breadcrumb from internal HTML

patrick_heavey
Rookie Contributor
patrick_heavey
We have the following:
Want to capture the value of id=breadcrumb. Any help would be appreciated. Thanks!
2 REPLIES 2

Grabbing breadcrumb from internal HTML

Tealium Employee
Assuming your site is running jQuery and this content loads before the reference to utag.js is made, you could add a Set extension that sets the value of a new data source -- say page_breadcrumb-- to the JS expression $("#breadcrumb").text() || ""; You may then need a second extension to perform string manipulation on the variable to get it into a more friendly format.

Grabbing breadcrumb from internal HTML

patrick_heavey
Rookie Contributor
patrick_heavey
Apparently this didn't work. I set "breadcrumb" as a UDO data source - did it need to be JS?