Can you set uBlock to allow Piwik tracking on all sites?

8

1

I'd like to reward site owners that use Piwik instead of Google Analytics by allowing Piwik tracking scripts globally. Is there any way to do this with the uBlock extension? So far I only found instructions for allowing/denying based on host.

chiborg

Posted 2015-11-02T17:43:22.857

Reputation: 347

Answers

7

Add this:

@@/piwik.php
@@/piwik.js

to your 'My Filters' tab in the uBlock settings.

This should be sufficient to allow piwik tracking globally on most sites.

Stefan

Posted 2015-11-02T17:43:22.857

Reputation: 186

1I guess you also need to allow @@/piwik.js – bonanza – 2016-09-24T15:26:39.977

yup, you're right. I've added that to the answer. – Stefan – 2016-09-26T19:47:59.027

In some case, there are also rules which block anything hosted on piwik subdomains such as piwik.exmample.com. In this case you may also want to add @@piwik. as rule – bonanza – 2019-09-21T10:00:29.860