13

I have recently switched from using AdBlock Plus to uBlock Origin Ad blocker in Firefox as it requires less memory (https://github.com/gorhill/uBlock/wiki/uBlock-vs.-ABP:-efficiency-compared).

Although uBlock Origin presents itself not only as an Ad blocker, but a wide-spectrum blocker (https://github.com/gorhill/uBlock), I would like to enable Google Analytics tracking on all websites (still having other tracking systems disabled) to be able to debug my Google Analytics settings.

Google Analytics is present in a lot of filters uBlock Origin uses, so I believe the easiest solution would be to whitelist the domains Google Analytics uses:

  • analytics.google.com
  • google-analytics.com
  • googletagmanager.com

To do that I have enabled Advanced User settings which should enable Dynamic Filtering (https://github.com/gorhill/uBlock/wiki/Dynamic-filtering).

Then in My Rules I have added these rules:

* analytics.google.com * allow
* google-analytics.com * allow
* googletagmanager.com * allow

And I have made them Permanent.

But the Google Analytics is still blocked when looking into the Real-Time overview on one of my websites. What am I doing wrong?


EDIT: After changing the domain to the correct google-analytics.com as @R.Hill suggested in the comment it works!

I have corrected the domain also in the original answer for everyone else to not be misled.

One more question. When looking into the Network panel displaying activity for a blank HTML page with only Google Analytics installed, there is also a request to stats.g.doubleclick.net. What is this request used for? Do I need to enable also this domain to be able to fully debug the Google Analytics settings?

2
  • 1
    The domain for Google Analytics is google-analytics.com, not googleanalytics.com.
    – R. Hill
    Jan 29, 2016 at 14:52
  • If the problem is solved, please post it as an answer instead of editing the question. Thanks. Jan 30, 2016 at 11:23

1 Answer 1

11

R. Hill says: "The domain for Google Analytics is google-analytics.com, not googleanalytics.com.

You had a typo in your rules. They should be:

* analytics.google.com * allow
* google-analytics.com * allow
* googletagmanager.com * allow

As for stats.g.doubleclick.net: That domain is used by Google for re-marketing tracking. It tracks sites you have visited for the purpose of showing you ads for those sites when you later visit other sites. It shouldn't effect your Google Analytics tracking.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.