Skip to content

Commit

Permalink
Removed posthog dependency from the site
Browse files Browse the repository at this point in the history
Signed-off-by: aakankshabhende <[email protected]>
  • Loading branch information
aakankshabhende committed Dec 18, 2024
1 parent b6ed840 commit d8e9840
Show file tree
Hide file tree
Showing 13 changed files with 31 additions and 583 deletions.
15 changes: 0 additions & 15 deletions gatsby-browser.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import "./fonts.css";
import posthog from "posthog-js";

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

export const onClientEntry = () => {
if (process.env.NODE_ENV === "production") {
posthog.init("phc_Yynjz2lAiQDJFqTWeGT0FJrt50hl53WBx8do3eKImgX",
{
api_host: "https://us.i.posthog.com",
person_profiles: "always",
autocapture: {
url_ignorelist: ["community/newcomers", "/calendar", "/newcomers"]
}
}
);
}
};

export { wrapRootElement } from "./root-wrapper";
export { wrapPageElement } from "./page-wrapper";
Loading

0 comments on commit d8e9840

Please sign in to comment.