From f5cd2f2d81c4cf110ae870d2f9b9240b50e9669a Mon Sep 17 00:00:00 2001 From: Tahier Hussain <89440263+tahierhussain@users.noreply.github.com> Date: Tue, 7 May 2024 14:58:58 +0530 Subject: [PATCH] FIX: Replace Posthog Credentials (#318) * Updated the credentials * Updated the posthog-js to the latest version --- frontend/package-lock.json | 12 ++++++------ frontend/src/index.js | 4 ++-- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/frontend/package-lock.json b/frontend/package-lock.json index b9a017023..ebe4b2d42 100644 --- a/frontend/package-lock.json +++ b/frontend/package-lock.json @@ -16027,9 +16027,9 @@ "integrity": "sha512-1NNCs6uurfkVbeXG4S8JFT9t19m45ICnif8zWLd5oPSZ50QnwMfK+H3jv408d4jw/7Bttv5axS5IiHoLaVNHeQ==" }, "node_modules/posthog-js": { - "version": "1.116.5", - "resolved": "https://registry.npmjs.org/posthog-js/-/posthog-js-1.116.5.tgz", - "integrity": "sha512-Dfsy07WGPRqbXNQgfhR5zhcQw4A078xCRX1y0oGmy8xVUmL6QLNNTVKENB4xpo45Ox+88cysi+hEMhd9SfV5Qg==", + "version": "1.130.2", + "resolved": "https://registry.npmjs.org/posthog-js/-/posthog-js-1.130.2.tgz", + "integrity": "sha512-QR/j9Xs/STK3+VJgqiByeXFKT17LGZZvJtrCdgFhwydp8WfisJw7zrSy7rVDjYS0UeKJJ/3cO/qtlXD3dR2+Eg==", "dependencies": { "fflate": "^0.4.8", "preact": "^10.19.3" @@ -31848,9 +31848,9 @@ "integrity": "sha512-1NNCs6uurfkVbeXG4S8JFT9t19m45ICnif8zWLd5oPSZ50QnwMfK+H3jv408d4jw/7Bttv5axS5IiHoLaVNHeQ==" }, "posthog-js": { - "version": "1.116.5", - "resolved": "https://registry.npmjs.org/posthog-js/-/posthog-js-1.116.5.tgz", - "integrity": "sha512-Dfsy07WGPRqbXNQgfhR5zhcQw4A078xCRX1y0oGmy8xVUmL6QLNNTVKENB4xpo45Ox+88cysi+hEMhd9SfV5Qg==", + "version": "1.130.2", + "resolved": "https://registry.npmjs.org/posthog-js/-/posthog-js-1.130.2.tgz", + "integrity": "sha512-QR/j9Xs/STK3+VJgqiByeXFKT17LGZZvJtrCdgFhwydp8WfisJw7zrSy7rVDjYS0UeKJJ/3cO/qtlXD3dR2+Eg==", "requires": { "fflate": "^0.4.8", "preact": "^10.19.3" diff --git a/frontend/src/index.js b/frontend/src/index.js index 79e66d94f..0d338065f 100644 --- a/frontend/src/index.js +++ b/frontend/src/index.js @@ -8,8 +8,8 @@ import { LazyLoader } from "./components/widgets/lazy-loader/LazyLoader.jsx"; import { SocketProvider } from "./helpers/SocketContext.js"; import "./index.css"; -const API_KEY = "phc_f1kLKkipCK3kBtA9bT0SfAChvFrlUxYSMD91GBNbwr1"; // gitleaks:allow -const API_HOST = "https://app.posthog.com"; +const API_KEY = "phc_PTafesyRuRB5hceRILaNPeyu2IDuzPshyjIPYGvgoBd"; // gitleaks:allow +const API_HOST = "https://eu.i.posthog.com/"; posthog.init(API_KEY, { api_host: API_HOST, capture_pageview: false,