Track all links on page regardless of being internal or external

Avatar

Avatar

OwlyChick

Avatar

OwlyChick

OwlyChick

14-03-2016

I need to be able to track clicks on different links within an infographic on a page. I've been told ClickMap does not track links to external sites. What is the easiest way to accomplish this? I do all my edits to code within DTM. Thank you!

View Entire Topic

Avatar

Avatar

JillsMatthew

Avatar

JillsMatthew

JillsMatthew

16-03-2016

OwlyChick wrote...

Thank you! So I need to put in the domains for the external URLs, correct? We will be creating these infographics on a weekly basis and they will all have different links to different domains. Is there any way to tell SiteCatalyst to just track clicks regardless of domain without disrupting my analytics on the remainder of the site?

 

 

 

Instead of 'attr' try using prop, it should give you the full URL including domain

destURL = $(this).prop("href");