Highlighted

Capture Breadcrumb from tag

Silver Contributor
Silver Contributor
How do I capture the breadcrumb from a
tag? Also, is it possible to place a ":" delimiter within? The breadcrumb is: Home:Mens:Sunglasses:Lifestyle Sunglasses The div tag is this:
3 REPLIES 3
Highlighted

Capture Breadcrumb from tag

Employee Emeritus

Hello Andre, I think this article, Pathname Tokenizer Extension (https://community.tealiumiq.com/t5/Tealium-iQ/Pathname-Tokenizer-Extension/ta-p/13734), maybe similar to what you are looking for. I will dig in more to provide you more details. Thanks, Cherr

Highlighted

Capture Breadcrumb from tag

Silver Contributor
Silver Contributor
This looks like more of a URL break-down by "/" site section mapping. I'm actually pull a div value which is different and created by a
and then
  • tags. How can this be done?
    Highlighted

    Capture Breadcrumb from tag

    Tealium Employee
    Hi Andre, You can accomplish this with some jQuery in a JavaScript code extension. {code:javascript} var out = []; $('.breadcrumb > ul').children('li').each(function(){ out.push($(this).text()); }) b['breadcrumb'] = out.join(':'); {code}