Code Monkey home page Code Monkey logo

Comments (11)

geritol avatar geritol commented on June 13, 2024 31

Just found the answer: the problem was Ad Block (on chrome)...

Don't know if we can do something about it, but currently this plugin wont let you track users or visitors using Ad Block.

http://stackoverflow.com/questions/22318119/i-am-getting-failed-to-load-resource-neterr-blocked-by-client-with-google-chr

from analytics.

calebkleveter avatar calebkleveter commented on June 13, 2024 3

I got this because I was running AdGuard. After turning it off things started working!

from analytics.

noahsw avatar noahsw commented on June 13, 2024

This is preventing my entire Meteor app from loading. I just get a white screen with a bunch of console errors:
image

My only workaround is to disable adblock. This is a blocker for me using this package unfortunately.

from analytics.

cfnelson avatar cfnelson commented on June 13, 2024

@noahsw Is this happening in dev or production mode ? Is this the issue referred to in the README ? If it's not can you please provide more information and/or a minimal reproduction as we have tested on our example apps without any issues when following the README instructions.

from analytics.

noahsw avatar noahsw commented on June 13, 2024

Ah, you're right @cfnelson. I didn't see the note on the README. However, I think we should make it clearer that the key difference is minification. I use meteor-up and I'm able to deploy to production (with Meteor.isProduction true), without minification. That's where I was getting the error.

Once I minified things with meteor-up's buildOptions { debug: false }, everything was fixed.

from analytics.

arrygoo avatar arrygoo commented on June 13, 2024

@noahsw I agree with your point about minification being clearer in the guides. Will add that. 👍

from analytics.

pauldowman avatar pauldowman commented on June 13, 2024

Is it the package name that's a problem, or one of the file names? Is it possible to rename something? (Maybe not if it's the package name itself).

from analytics.

noahsw avatar noahsw commented on June 13, 2024

Thx @arrygoo !

@pauldowman, I believe it's because the javascript file it exports has the word "analytics" in it.

from analytics.

cfnelson avatar cfnelson commented on June 13, 2024

@noahsw Sorry for the late response, been away on holiday. You are correct that it's due to it not being bundled.

@pauldowman It is due to the Package name that we are using. I believe uBlock is inspecting the Request URL and/or its response and blocks if it reads the word "analytics". When the Meteor packages are not bundled Meteor requests each package individually. In our case something like this http://localhost:3000/packages/okgrow_analytics.js?hash=4a8c92364e5f2ab889a06fd2f25d06330856e73e

from analytics.

Arnauw avatar Arnauw commented on June 13, 2024

Just had this problem too with "https://apis.google.com/js/platform.js", only solution is to disable addblock, or maybe charge the script locally instead.

from analytics.

AlmTalal avatar AlmTalal commented on June 13, 2024

Just had this problem too with "https://apis.google.com/js/platform.js", only solution is to disable addblock, or maybe charge the script locally instead.

How can i disable the add blocker in a vite-react project? I'm having the same issue when deploying locally

from analytics.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.