question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

uBlock Origin Blocking */gtag/js*

See original GitHub issue

I use uBlock Origin, and after testing my implementation, it looks like this won’t work for any adblocker that uses https://easylist.to/easylist/easylist.txt because it has a filter for /gtag/js?

I masked my googletagmanager URL using npm run mask www.googletagmanager.com/gtag/js?id=XYZ and I have a reference to that in my app’s javascript

adblock_network_calls

In the network calls, it redirects from the mask to http://MY-DOMAIN/www.googletagmanager.com/gtag/js?id=XYZ&l=dataLayer&cx=c which then gets blocked by uBlock Origin.

Not sure if this is anything that can be addressed on the implementation side, but just wanted to report this since I saw from https://github.com/ZitRos/save-analytics-from-content-blockers/issues/14#issuecomment-544560089 that @ZitRos you use AdGuard (tracking works when I enable AdGuard instead of uBlock Origin)

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:10 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
ZitRoscommented, Sep 24, 2020

Oh, that was easy. Fixed by 8540403a9fe196500ef8425995d84a4d03f0294b.

Please verify 😃 (I uploaded new container as well)

1reaction
ZitRoscommented, Sep 21, 2020

Yes, that’s strange it wasn’t masked in response. I’ll check tomorrow, thanks for reporting.

Read more comments on GitHub >

github_iconTop Results From Across the Web

uBO is blocking www.googletagmanager.com, which ... - Reddit
Blocked by default filters lists in uBO and both of them are blocked. ... r/uBlockOrigin - Feature request: Block Google Sign-In pop-ups.
Read more >
Unblock Google Analytics: Prevent AdBlockers from Blocking ...
Goal: Prevent Google Tag Manager and Google Analytics from being blocked by adblockers and DNS blockers again by using URL-encoding and same- ...
Read more >
Google Tag Manager, the new anti-adblock weapon
"Your adblocker (uBlock Origin on Firefox for example), ... change their gtag.js scripts in order to enter the domain of the proxy server....
Read more >
Server-side Tag Manager/App Engine/Ad blocker: Any way to ...
But I realized that ad blockers such as uBlock Origin block request to tag manager or analytics domains and even URL path segments...
Read more >
Make your analytics work with adblockers - Patryk Kalinowski
Analytics scripts are blocked from being loaded and data is blocked from ... (especially uBlock Origin) really don't like Google Analytics.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found