From c737c63ba8bcd47b20b39f084e5f0cbcd22885b5 Mon Sep 17 00:00:00 2001 From: abhijeetnishal Date: Sun, 19 May 2024 20:48:00 +0530 Subject: [PATCH] refactor: Analytics mixpanel --- server/config/mixpanel.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/server/config/mixpanel.js b/server/config/mixpanel.js index a9e0343..d1df7bb 100644 --- a/server/config/mixpanel.js +++ b/server/config/mixpanel.js @@ -3,12 +3,14 @@ const Mixpanel = require("mixpanel"); // track an event with optional properties const trackEvent = (eventName, value) => { const mixPanelProjectToken = process.env.MIXPANEL_PROJECT_TOKEN; + console.log(mixPanelProjectToken); if (mixPanelProjectToken) { const mixpanel = Mixpanel.init(mixPanelProjectToken, { geolocate: true, }); + console.log("mixpanel init"); mixpanel.track(eventName, { url: value, });