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

Ad Blockers Blocking PostHog Integration in Docusaurus Site #16

Open
mrpmohiburrahman opened this issue Jun 26, 2024 · 1 comment
Open
Labels
question Further information is requested

Comments

@mrpmohiburrahman
Copy link

Hi,
I am trying to integrate PostHog into my Docusaurus site, but I am encountering an issue where the requests to PostHog are being blocked by ad blockers.

Docusaurus Configuration:

  plugins: [
    [
      "posthog-docusaurus",
      {
        apiKey: "my_api_key",
        appUrl: "https://us.i.posthog.com",
        enableInDevelopment: true,
        onPostHogReady: () => {
          console.log("PostHog is ready");
        },
      },
    ],
  ],

Error:
When the site is loaded, I receive the following console log message:

GET https://us.i.posthog.com/static/array.js net::ERR_BLOCKED_BY_CLIENT

image

I understand that using a reverse proxy can mitigate this issue, as described in this PostHog article. However, setting up a reverse proxy is currently beyond my skill level.

Question:
Is there an alternative solution to prevent ad blockers from blocking PostHog on my site, other than setting up a reverse proxy?

@robbie-c
Copy link
Member

There isn't really a good alternative, but we recently launched a Managed reverse proxy product which is much easier to set up than a traditional reverse proxy.

@robbie-c robbie-c added the question Further information is requested label Jul 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants