diff --git a/docs/.vitepress/theme/index.ts b/docs/.vitepress/theme/index.ts index 96997e87451ea..17f7aa5203198 100644 --- a/docs/.vitepress/theme/index.ts +++ b/docs/.vitepress/theme/index.ts @@ -3,7 +3,6 @@ import * as d3 from "d3"; import {useData} from "vitepress"; import CustomLayout from "./CustomLayout.vue"; import "./custom.css"; -import enablePosthog from "./posthog.js"; export default { extends: DefaultTheme, @@ -11,6 +10,5 @@ export default { enhanceApp({app, router}) { globalThis.d3 = d3; // for console testing! Object.defineProperty(app.config.globalProperties, "$dark", {get: () => useData().isDark.value}); - enablePosthog(app, router); } }; diff --git a/docs/.vitepress/theme/posthog.js b/docs/.vitepress/theme/posthog.js deleted file mode 100644 index 87e7e5d595fa2..0000000000000 --- a/docs/.vitepress/theme/posthog.js +++ /dev/null @@ -1,16 +0,0 @@ -import Posthog from "posthog-js"; - -export default function enablePosthog(app, router) { - const posthog = Posthog.init( - "phc_7KVtf7qQRJ2j4rsHzvJ9UyJ8iwyYw2PqfAMmNEo9FB9", - {api_host: "https://app.posthog.com"} - ); - app.config.globalProperties.$posthog = posthog; - router.afterEach((to) => { - nextTick(() => { - posthog.capture("$pageview", { - $current_url: to.fullPath - }); - }); - }); -} diff --git a/package.json b/package.json index 435cb3d5451a0..d85fd3169a96d 100644 --- a/package.json +++ b/package.json @@ -74,7 +74,6 @@ "@rollup/plugin-terser": "^0.4.0", "eslint": "8", "mocha": "10", - "posthog-js": "^1.68.1", "rollup": "3", "topojson-client": "^3.1.0", "vitepress": "^1.0.0-beta.2" diff --git a/yarn.lock b/yarn.lock index 895069879a4c1..a450111a0cc14 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1270,11 +1270,6 @@ fastq@^1.6.0: dependencies: reusify "^1.0.4" -fflate@^0.4.1: - version "0.4.8" - resolved "https://registry.yarnpkg.com/fflate/-/fflate-0.4.8.tgz#f90b82aefbd8ac174213abb338bd7ef848f0f5ae" - integrity sha512-FJqqoDBR00Mdj9ppamLa/Y7vxm+PRmNWA67N846RvsoYVMKB4q3y/de5PA7gUmRMYK/8CMz2GDZQmCRN1wBcWA== - file-entry-cache@^6.0.1: version "6.0.1" resolved "https://registry.yarnpkg.com/file-entry-cache/-/file-entry-cache-6.0.1.tgz#211b2dd9659cb0394b073e7323ac3c933d522027" @@ -1749,13 +1744,6 @@ postcss@^8.1.10, postcss@^8.4.23: picocolors "^1.0.0" source-map-js "^1.0.2" -posthog-js@^1.68.1: - version "1.68.1" - resolved "https://registry.yarnpkg.com/posthog-js/-/posthog-js-1.68.1.tgz#eadca3db9e45287771fe3a8b4100bffe50891750" - integrity sha512-edwURtegKXIUEdjgLErJF8cfCuwj7kw8JDmomnVXp9cjwaJT8Y3BRLh5Lh81GnjwGuifp1vjOL0hD3AamtsmGg== - dependencies: - fflate "^0.4.1" - preact@^10.0.0: version "10.15.1" resolved "https://registry.yarnpkg.com/preact/-/preact-10.15.1.tgz#a1de60c9fc0c79a522d969c65dcaddc5d994eede"