Skip to content

Commit

Permalink
Merge branch 'layer5io:master' into png-test
Browse files Browse the repository at this point in the history
  • Loading branch information
Ajay-singh1 authored Dec 24, 2024
2 parents 575b633 + e907d8f commit a876081
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 336 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 a876081

Please sign in to comment.