PostHog / posthog-docusaurus

🦔 PostHog plugin for Docusaurus v2
MIT License
6 stars 2 forks source link

Ad Blockers Blocking PostHog Integration in Docusaurus Site #16

Open mrpmohiburrahman opened 2 months ago

mrpmohiburrahman commented 2 months ago

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 commented 1 month ago

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.