- TLC Home Home
- Discussions & Ideas Discussions & Ideas
- Product Guides Product Guides
- Knowledge Base Knowledge Base
- Developer Docs Developer Docs
- Education Education
- Blog TLC Blog
- Support Desk Support Desk
08-13-2015 05:32 PM
08-14-2015 12:59 AM - last edited on 09-04-2016 08:25 AM by kathleen_jo
Hi Dustin,
The only way you'd be able to grab this really would be to ensure that the utag.link() event which passes in data to Tealium has already grabbed the href (or the whole element) so that you can use an extension to pick the part you want. e.g. if your jQuery looked like this:
jQuery(document.body).on('mousedown','a[href="www.example.com/doc/blah.pdf"]',function(e){ utag.link({ event_name:"click on button", link_object:this, link_url:e.this.href }); );
You could refer to the href as either the 'link_url' data source (i.e. b.link_url) or you could refer to 'b.link_object.url' in a set data values extension (with type 'JS code'). If you don't pass in the href or the itself then there's no way of really grabbing it once you're in Tealium without masses of probably unreliable code (if at all).
Cheers, Roshan
Copyright All Rights Reserved © 2008-2021