Skip to content

Commit

Permalink
install
Browse files Browse the repository at this point in the history
Signed-off-by: Sudhanshu Dasgupta <[email protected]>
  • Loading branch information
sudhanshutech committed Sep 19, 2024
1 parent b90d4c8 commit 0d86e45
Show file tree
Hide file tree
Showing 4 changed files with 61 additions and 143 deletions.
14 changes: 7 additions & 7 deletions gatsby-browser.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import "./fonts.css";
import posthog from "posthog-js";
// import posthog from "posthog-js";

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

posthog.init("phc_Yynjz2lAiQDJFqTWeGT0FJrt50hl53WBx8do3eKImgX",
{
api_host: "https://us.i.posthog.com",
person_profiles: "always",
}
);
// posthog.init("phc_Yynjz2lAiQDJFqTWeGT0FJrt50hl53WBx8do3eKImgX",
// {
// api_host: "https://us.i.posthog.com",
// person_profiles: "always",
// }
// );

export { wrapRootElement } from "./root-wrapper";
export { wrapPageElement } from "./page-wrapper";
9 changes: 9 additions & 0 deletions gatsby-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,15 @@ module.exports = {
disable: true
}
},
{
resolve: "gatsby-plugin-posthog",
options: {
apiKey: "phc_Yynjz2lAiQDJFqTWeGT0FJrt50hl53WBx8do3eKImgX",
appHost: "https://us.i.posthog.com",
head: true,
isEnabledDevMode: true
}
},
{
resolve: "gatsby-plugin-sitemap",
options: {
Expand Down
Loading

0 comments on commit 0d86e45

Please sign in to comment.