Skip to content

Commit e907d8f

Browse files
Merge pull request #6125 from aakankshabhende/6110
Removed posthog dependency from the site
2 parents 4bc11a0 + b1574b8 commit e907d8f

File tree

4 files changed

+31
-336
lines changed

4 files changed

+31
-336
lines changed

gatsby-browser.js

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import "./fonts.css";
2-
import posthog from "posthog-js";
32

43
document.addEventListener("DOMContentLoaded", () => {
54
/** init gtm after 3500 seconds - this could be adjusted */
@@ -29,19 +28,5 @@ function initGTM() {
2928
document.head.appendChild(script);
3029
}
3130

32-
export const onClientEntry = () => {
33-
if (process.env.NODE_ENV === "production") {
34-
posthog.init("phc_Yynjz2lAiQDJFqTWeGT0FJrt50hl53WBx8do3eKImgX",
35-
{
36-
api_host: "https://us.i.posthog.com",
37-
person_profiles: "always",
38-
autocapture: {
39-
url_ignorelist: ["community/newcomers", "/calendar", "/newcomers"]
40-
}
41-
}
42-
);
43-
}
44-
};
45-
4631
export { wrapRootElement } from "./root-wrapper";
4732
export { wrapPageElement } from "./page-wrapper";

0 commit comments

Comments
 (0)