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.

Amplitude callback isn't fired if a user enables adblock

See original GitHub issue

One 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:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

5reactions
piougcommented, Oct 12, 2020

Well in my case, I need to log events before the visitor leaves a page so opt_callback must be called.

2reactions
mattlongcommented, Apr 14, 2021

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.

Read more comments on GitHub >

github_iconTop 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 >

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