From 155d5f486d49d0724d53114abf44ff8f128caf55 Mon Sep 17 00:00:00 2001 From: Leonardo Dourado <102989712+leonardodouradol@users.noreply.github.com> Date: Fri, 5 Apr 2024 17:03:19 -0300 Subject: [PATCH] Enhancement: Update Mixpanel Integration and Package Dependencies (#17) --- .tool-versions | 1 - package.json | 7 ++----- src/providers/setups/mixpanel/mixpanel.ts | 2 ++ 3 files changed, 4 insertions(+), 6 deletions(-) delete mode 100644 .tool-versions diff --git a/.tool-versions b/.tool-versions deleted file mode 100644 index 8abaea2..0000000 --- a/.tool-versions +++ /dev/null @@ -1 +0,0 @@ -nodejs 16.14.0 diff --git a/package.json b/package.json index 5aeae55..e3688e6 100644 --- a/package.json +++ b/package.json @@ -1,13 +1,10 @@ { "name": "@useblu/blu-lytics", - "version": "1.0.6", + "version": "1.0.7", "private": false, "license": "MIT", "main": "lib/index.js", "types": "lib/index.d.ts", - "engines": { - "node": "^16.10.0" - }, "scripts": { "build": "tsc --declaration", "dev": "ts-node src/index.ts", @@ -22,7 +19,7 @@ "@sentry/tracing": "^6.19.7", "clarity-js": "^0.7.24", "jest-environment-jsdom": "^29.7.0", - "mixpanel-browser": "^2.48.1", + "mixpanel-browser": "^2.49.0", "react": "^18.2.0" }, "devDependencies": { diff --git a/src/providers/setups/mixpanel/mixpanel.ts b/src/providers/setups/mixpanel/mixpanel.ts index 224ec25..f595503 100644 --- a/src/providers/setups/mixpanel/mixpanel.ts +++ b/src/providers/setups/mixpanel/mixpanel.ts @@ -13,6 +13,8 @@ const dispatchUserIdentification = ( userProperties: IUserProperties, ): void => { mixpanel.identify(id); + mixpanel.people.set({ USER_ID: id }); + const superProperties = ['name', 'email']; const peopleProperties: Record = {};