Amplitude callback isn't fired if a user enables adblock
See original GitHub issueOne of our developers enables adblock and have found that the callback of logEvent
isn’t fired.
I wonder if we can make the callback fires even the sending-data-to-amplitude action fails.
Thank you
Issue Analytics
- State:
- Created 5 years ago
- Reactions:1
- Comments:6 (3 by maintainers)
Top Results From Across the Web
amplitude is not working when adblocker is enabled
i am getting this error in console ..GET https://cdn.amplitude.com/libs/amplitude-8.17.0-min.gz.js net::ERR_BLOCKED_BY_CLIENT also i am able ...
Read more >Advanced Topics - Amplitude Developer Center
If you track anonymous users across subdomains of your product (eg: www.amplitude.com vs analytics.amplitude.com), this will no longer work.
Read more >Issue with tracking some users - Amplitude Community
Hi everyone, We are using GTM and javascript SDK to track users on our web application but sometimes amplitude cannot track some users...
Read more >JavaScript SDK (Legacy) - Amplitude Developer Center
The Amplitude JavaScript SDK installation and quick start guide.
Read more >Amplitude SDK events not being tied with Backend events
We've verified the event is successfully firing for 94% of users yet the events are not associated with events send by our client...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Well in my case, I need to log events before the visitor leaves a page so
opt_callback
must be called.I’m still observing the behavior described in this issue. Using the JS snippet currently on https://developers.amplitude.com/docs/javascript that attempts to load version 8.1.0. With uBlock Origin enabled on Chrome v89,
logEvent
callbacks are not triggered when attempting to track outbound link clicks.Related, the console.log statement from the snippet (
console.log("[Amplitude] Error: could not load SDK")
) isn’t actually being logged. An active ad blocker seems like a situation when when I’d expect to see it triggered.