Skip to main content
Samantha_Richar
Level 1
October 22, 2019
Question

'Mailto:' link tracking on Landing Pages

  • October 22, 2019
  • 1 reply
  • 4005 views

Hi! I am looking to create a smart list to track clicks from an email to a specific landing page then to the various links on that landing page. I have got it for all the other links that are to other landing pages, but having trouble building one for the link that goes to an email prompt (mailto:address) Is it possible to track this since it's not going to another landing page?

I know I can see links like this being tracked in the email link performance report if it is in an email so wondering why it wouldn't be the same if it was on a landing page instead. Thanks in advance for your help!

1 reply

SanfordWhiteman
Level 10
October 22, 2019

Email clicks and web clicks are tracked via totally different mechanisms, see nation.marketo.com/groups/newyork-user-group/blog/2018/01/06/more-links-munchkin-wont-track-unless-you-tell-it-to-part-1-of-2 

Samantha_Richar
Level 1
October 22, 2019

Oh no! So there is no way to retrieve this at all? Any workarounds you can suggest? It seems like creating another landing page with a contact us form that sends the email and then tracking the form fills would be the only way correct? 

SanfordWhiteman
Level 10
October 22, 2019

Definitely a form is a better bet.

But you can track the mailto: going forward, it just won't work going backward. It takes a tiny bit of JS:

(function() {
var arrayify = getSelection.call.bind([].slice);
arrayify(document.links)
.filter(function(link) {
return link.protocol == "mailto:";
})
.map(function(mailToLink) {
mailToLink.addEventListener("click", function(e) {
Munchkin.munchkinFunction("clickLink", {
href: this.href
});
});
});
})();

Note you would do

   [contains] "mailto:someone@example.com"

in your Smart List, as opposed [starts with], because of the way Munchkin parses the URL.