Skip to content

Commit

Permalink
Remove unrequired posthog modules
Browse files Browse the repository at this point in the history
  • Loading branch information
KevinEtchells committed Jul 17, 2024
1 parent a804a1b commit 8b897d7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 3 additions & 3 deletions django_app/frontend/posthog_source/index.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import "../node_modules/posthog-js/dist/recorder.js";
import "../node_modules/posthog-js/dist/surveys.js";
import "../node_modules/posthog-js/dist/exception-autocapture.js";
import "../node_modules/posthog-js/dist/tracing-headers.js";
//import "../node_modules/posthog-js/dist/exception-autocapture.js";
//import "../node_modules/posthog-js/dist/tracing-headers.js";
import "../node_modules/posthog-js/dist/web-vitals.js";
import posthog from "posthog-js";

posthog.init("phc_3r2LNsBz7zJFRSpcMmE4PwXEq2m4CwfxJC9H1OeeMJg", {
api_host: "https://eu.i.posthog.com",
disable_external_dependency_loading: true, // Optional - will ensure we never try to load extensions lazily
disable_external_dependency_loading: true,
});

export const _frontmatter = {};
2 changes: 2 additions & 0 deletions django_app/frontend/posthog_source/readme.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# Posthog setup

These instructions are based on the docs at https://posthog.com/docs/libraries/js#advanced-option---bundle-all-required-extensions

After making changes to index.js, run from this folder:

`npx parcel build index.html`
Expand Down

0 comments on commit 8b897d7

Please sign in to comment.