Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP


Disable mailto:tracking #2731

mattab opened this Issue · 2 comments

2 participants

Matthieu Aubry Anonymous Piwik user
Matthieu Aubry

mailto: links are tracked with Piwik. However as of 1.6 we do not track any URL that does not start with http. Therefore the mailto clicks are not tracked anymore. We should instead disable completely and not fire a request.

Users can manually track the mailto: links by doing:

<a href="" onClick="javascript:piwikTracker.trackLink('http://mailto/mailto/Agent namexyz', 'link');"></a>
Matthieu Aubry

(In [5356]) Fixes #2731

Anonymous Piwik user

To automatically track mailto links, use jQuery and this code

<!--Track mailto-->
jQuery(document).ready(function($) {
    piwikTracker.setCustomVariable(1, "Share By Email",  'Email='+this.href.replace(/^mailto:/i,'') + ' /Page = ' +  location.href, "page");  piwikTracker.trackPageView();
<!--End Track mailto-->

more details:

Matthieu Aubry mattab added this to the 1.7 Piwik 1.7 milestone
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.