Quantcast
Channel: Support & Bugs - Matomo forums
Viewing all articles
Browse latest Browse all 5706

Link with both setIgnoreClasses and setDownloadClasses is Tracked

$
0
0

@JoshaHubbers wrote:

I’ve got a link <a href="#" type="image/png; length=44118" class="encrypted-file" target="_blank">attachment.png</a>

This is piwik code:
var _paq = _paq || [];(function(){var u=((“https:” == document.location.protocol) ? “https://” : “https://”);_paq.push([“setSiteId”, “1”]);_paq.push([“setTrackerUrl”, u+“piwik.php”]);_paq.push([“setDownloadExtensions”, “7z|aac|arc|arj|asf|asx|avi|bin|csv|doc|exe|flv|gif|gz|gzip|hqx|jar|jpe?g|js|mp(2|3|4|e?g)|mov(ie)?|msi|msp|pdf|phps|png|ppt|qtm?|ra(m|r)?|sea|sit|tar|tgz|torrent|txt|wav|wma|wmv|wpd|xls|xml|z|zip”]);_paq.push([“setDoNotTrack”, 1]);_paq.push([‘setCustomVariable’, 1, “VisitorType”, “bezoeker”, “visit”]);_paq.push([‘setIgnoreClasses’, “encrypted-file”]);
_paq.push([‘setIgnoreClasses’, “private-pdf”]);_paq.push([‘setDownloadClasses’, ‘link-file’]);_paq.push([“trackPageView”]);_paq.push([“setIgnoreClasses”, [“no-tracking”,“colorbox”]]);_paq.push([“enableLinkTracking”]);var d=document,g=d.createElement(“script”),s=d.getElementsByTagName(“script”)[0];g.type=“text/javascript”;g.defer=true;g.async=true;g.src=u+“piwik.js”;s.parentNode.insertBefore(g,s);})();

Ik hoped the link would not be tracked, because the class is ignored and that would override the download class. But it looks like the download class wins from the ignore class. Is this presumption right?

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 5706

Trending Articles