Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

Trackable Mailto link

bryceh57660644
Level 2
Level 2

I have always thought that mailto links are not able to be tracked, but I have had someone recently tell me that it isn't true, but cannot tell me how to do it.

 

I have created mailto links in the past, and usually just dropped it into my standard link setup even though I didn't think it mattered:

<a href="mailto:name@domain.com" target="_blank" label="Mailto" Title="Mailto">Email Me</a>

 

I have also gone back into my tracking logs and looked for a source URL that contains mailto with no results showing.

Anyone know of anything different?
Thanks,

Bryce

1 Accepted Solution
Manoj_Kumar_
Correct answer by
Community Advisor
Community Advisor

Hello @bryceh57660644 ,

Mailto links can be tracked on the webpages by using onclick javascript function.

<a href="mailto:name@domain.com" conclick="trackingFunction()" target="_blank" label="Mailto" Title="Mailto">Email Me</a>

But they cannot be tracked emails because they don't support javascript and isp will reject the JS content. 

The only possible way i could think is to dynamically add the content in the email so that the pixel will fire in the compose tab.
Something like this:

<a href="mailto:name@domain.com?body=This%20is%20body%20text ADD PIXEL HERE">name@domain.com</a>

I am not sure if this will work But that is the only way i can think to make it work in emails only js supported clients.

View solution in original post

2 Replies
Manoj_Kumar_
Correct answer by
Community Advisor
Community Advisor

Hello @bryceh57660644 ,

Mailto links can be tracked on the webpages by using onclick javascript function.

<a href="mailto:name@domain.com" conclick="trackingFunction()" target="_blank" label="Mailto" Title="Mailto">Email Me</a>

But they cannot be tracked emails because they don't support javascript and isp will reject the JS content. 

The only possible way i could think is to dynamically add the content in the email so that the pixel will fire in the compose tab.
Something like this:

<a href="mailto:name@domain.com?body=This%20is%20body%20text ADD PIXEL HERE">name@domain.com</a>

I am not sure if this will work But that is the only way i can think to make it work in emails only js supported clients.

View solution in original post

bryceh57660644
Level 2
Level 2
Thanks, the boss was pressing hard on this, but confirms what I thought. Interesting point on the web pages that use java, will keep that in mind for the future.