Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BUG : ublock blocking all paths with /beacon/ #1869

Open
tak-hntlabs opened this issue Sep 27, 2024 · 4 comments
Open

BUG : ublock blocking all paths with /beacon/ #1869

tak-hntlabs opened this issue Sep 27, 2024 · 4 comments
Assignees
Labels
bug Something isn't working open source PRs or issues originating from the open-source community

Comments

@tak-hntlabs
Copy link

Describe the bug
I'm using rudderstack JavaScript API for our web app. In testing analytics, I installed ublock as a Chrome extention. ublocks seems to be blocking all paths with the "/beacon/" in it. None of the rudderstack events go through. I have set up our custom domain. Without ublock, rudderstack events are sent fine. But with ublock enabled, the http requests are blocked.

To Reproduce
Steps to reproduce the behavior:

  1. Install ublock origin lite Chrome extension
  2. Open dev console, open the network tab
  3. Go to any site using rudderstack analytics
  4. Observe the console logs. Http requests with url like .../beacon/.../batch?writeKey=... are blocked

Expected behavior
events are not blocked

Screenshots
If applicable, add screenshots to help explain your problem.

Additional Information (please complete the following information):

  • SDK installation type: NPM
  • SDK CDN URL: (if applicable)
  • SDK version: (for NPM installation)
  • Node version: (if applicable)
  • NPM version: 3.1.0
  • TypeScript version: (if applicable)
  • Webpage URL: (where the SDK is installed, if applicable)
  • Share the event payload: (if applicable)
  • Integration that has the issue: (if applicable)
  • Framework and version(e.g: Next.js, React, Vue): react, vite
  • Bundling toolset (e.g: Webpack, Rollup): (if applicable)

Desktop (please complete the following information):

  • OS: [e.g. iOS]
  • Browser [e.g. chrome, safari]
  • Version [e.g. 22]

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.

@tak-hntlabs tak-hntlabs added bug Something isn't working open source PRs or issues originating from the open-source community labels Sep 27, 2024
@contributor-support
Copy link

Thanks for opening this issue! We'll get back to you shortly. If it is a bug, please make sure to add steps to reproduce the issue.

@saikumarrs saikumarrs self-assigned this Sep 28, 2024
@ricardocosta
Copy link

Hello,

I'm facing the same/similar issue. It seems that, despite having a custom domain configured in Rudderstack, it still tries to download some script from Rudderlabs CDN, which is blocked by uBlock and prevents track calls from going through.

image

@tak-hntlabs
Copy link
Author

tak-hntlabs commented Oct 1, 2024

Hello,

I'm facing the same/similar issue. It seems that, despite having a custom domain configured in Rudderstack, it still tries to download some script from Rudderlabs CDN, which is blocked by uBlock and prevents track calls from going through.

image

You can make this work by setting this option to point to your custom domain:

 rudder.load(writeKey, dataPlaneUrl, {
                    ...
                    pluginsSDKBaseURL,
                })

@saikumarrs
Copy link
Member

Hello @tak-hntlabs
Thanks for raising it to us. We're investigating it.

One potential solution is to support an obfuscated alias for the beacon endpoint to make it harder for adblockers to block.
We'll make sure to keep you posted.

Additionally, thanks for clarifying the load API option above.

@ricardocosta, if you have any device mode destinations connected to your source, you should also exercise the destSDKBaseURL option.
Please let us know if you need any help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working open source PRs or issues originating from the open-source community
Projects
None yet
Development

No branches or pull requests

3 participants