Blocking Piwik Analytics

Ask for help about NoScript, no registration needed to post
pogue
Posts: 6
Joined: Fri Nov 20, 2009 11:06 pm

Blocking Piwik Analytics

Post by pogue »

Since I heard about the Google Analytics Opt-Out addon I remember there was another Firefox addon called TACO that essentially did the same thing. However, I noticed it hadn't been updated since July 2009 and there was a newer addon called PrivacyChoice that was more recent and covered more sites, but it had a poor reviews.

Apparently, there is a privacy policy that is stipulated with the addon where they use something called Piwik to track usage.
To understand usage patterns, we use an open source site analytics system, Piwik. This system uses anonymous cookies to identify return visitors, and logs standard technical information such as your IP address, the browser software you use and your operating system. We only access this information in aggregate form through analytics. The information is retained no longer than one year.
I don't really like the idea of a tool used to block tracking tracking me, but I still like the functionality that PrivacyChoice gives me, so I was wondering if there was a way to block the Piwik analytics system. Piwik is an open source utility and it apparently uses a Javascript file embedded on a page to do its work. But, there are different builds and different plugins for all sorts of separate CMSes so I'm not really sure specifically how I would go about doing this, since it's not coming from a single domain name. I assume it would require a surrogate script within NoScript to prevent it from running. I am not fluent in Javascript, so I don't have the slightest idea of how to do this, so maybe someone can point me in the right direction or we can collaborate on adding this for NoScript.

As a side question, is there a listing of surrogate scripts that have been developed for NoScript for sites that can be added in manually? Or would I just have to search through the forum to find them?

Thanks in advance,
pogue
Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3
dhouwn
Bug Buster
Posts: 968
Joined: Thu Mar 19, 2009 12:51 pm

Re: Blocking Piwik Analytics

Post by dhouwn »

The add-on interacts with their site which has the following:

Code: Select all

<script type="text/javascript">
try {
    var piwikTracker = Piwik.getTracker(pkBaseURL + "piwik.php", 1);
    piwikTracker.trackPageView();
    piwikTracker.enableLinkTracking();
}
catch(err) { }
</script>
<noscript>
    <p>
        <img src="http://stats.privacychoice.org/piwik.php?idsite=1" style="border:0" alt=""/>
    </p>
</noscript>
(formatted a little bit)
Mozilla/5.0 (Windows; U; Windows NT 6.1; en-GB; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3
Post Reply