rozmova-analytics 1.1.7 → 1.1.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +1 -0
- package/dist/index.esm.js +5 -0
- package/dist/index.js +5 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
package/dist/index.esm.js
CHANGED
|
@@ -12588,15 +12588,20 @@ class Analytics {
|
|
|
12588
12588
|
return;
|
|
12589
12589
|
}
|
|
12590
12590
|
const { email, name, phone } = userParams;
|
|
12591
|
+
// Mixpanel user
|
|
12591
12592
|
mixpanel.identify(userId);
|
|
12592
12593
|
mixpanel.people.set({ $email: email, name, phone });
|
|
12594
|
+
// GA user
|
|
12593
12595
|
gtag("config", GOOGLE_ANALYTICS_ID, {
|
|
12594
12596
|
user_properties: this.getCommonParams(),
|
|
12595
12597
|
user_id: userId,
|
|
12596
12598
|
server_container_url: GA_SERVER_CONTAINER_URL,
|
|
12597
12599
|
});
|
|
12600
|
+
// Customer IO user
|
|
12598
12601
|
window.analytics.identify(userId, userParams);
|
|
12602
|
+
// store user id in cookies
|
|
12599
12603
|
setProfileId(userId);
|
|
12604
|
+
// login event
|
|
12600
12605
|
this.trackEvent("login", { logged: "yes", uid: userId });
|
|
12601
12606
|
}
|
|
12602
12607
|
getCommonParams() {
|
package/dist/index.js
CHANGED
|
@@ -12590,15 +12590,20 @@ class Analytics {
|
|
|
12590
12590
|
return;
|
|
12591
12591
|
}
|
|
12592
12592
|
const { email, name, phone } = userParams;
|
|
12593
|
+
// Mixpanel user
|
|
12593
12594
|
mixpanel.identify(userId);
|
|
12594
12595
|
mixpanel.people.set({ $email: email, name, phone });
|
|
12596
|
+
// GA user
|
|
12595
12597
|
gtag("config", GOOGLE_ANALYTICS_ID, {
|
|
12596
12598
|
user_properties: this.getCommonParams(),
|
|
12597
12599
|
user_id: userId,
|
|
12598
12600
|
server_container_url: GA_SERVER_CONTAINER_URL,
|
|
12599
12601
|
});
|
|
12602
|
+
// Customer IO user
|
|
12600
12603
|
window.analytics.identify(userId, userParams);
|
|
12604
|
+
// store user id in cookies
|
|
12601
12605
|
setProfileId(userId);
|
|
12606
|
+
// login event
|
|
12602
12607
|
this.trackEvent("login", { logged: "yes", uid: userId });
|
|
12603
12608
|
}
|
|
12604
12609
|
getCommonParams() {
|