rozmova-analytics 1.0.9 → 1.0.10

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.
@@ -1,4 +1,4 @@
1
- import { AnalyticsCommonParams, EventParams } from "./types";
1
+ import { AnalyticsCommonParams, EventParams } from "./types.js";
2
2
  export declare const generateUserId: () => string;
3
3
  export declare const getUserId: () => string;
4
4
  export declare const setLocale: (newLocale: string) => void;
package/dist/analytics.js CHANGED
@@ -7,8 +7,8 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
7
7
  import Cookies from "js-cookie";
8
8
  import mixpanel from "mixpanel-browser";
9
9
  import { nanoid } from "nanoid";
10
- import { GA_SERVER_CONTAINER_URL, GOOGLE_ANALYTICS_ID, MIXPANEL_TOKEN, PARAMS_COOKIE_NAME, USER_ID_KEY, UTM_KEYS } from "./constants";
11
- import { detectBrowser, detectDeviceType, detectOS, getBrowserLanguage, getDomain, getGAClientId, getGASessionId, getQueryParam, getReferrer, getSearchQueryFromReferrer, isMetaBrowser, setQueryParam } from "./helpers";
10
+ import { GA_SERVER_CONTAINER_URL, GOOGLE_ANALYTICS_ID, MIXPANEL_TOKEN, PARAMS_COOKIE_NAME, USER_ID_KEY, UTM_KEYS } from "./constants.js";
11
+ import { detectBrowser, detectDeviceType, detectOS, getBrowserLanguage, getDomain, getGAClientId, getGASessionId, getQueryParam, getReferrer, getSearchQueryFromReferrer, isMetaBrowser, setQueryParam } from "./helpers.js";
12
12
  export var generateUserId = function generateUserId() {
13
13
  var userId = nanoid();
14
14
  var domain = getDomain();