rozmova-analytics 1.1.44 → 1.1.46
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/README.md +0 -19
- package/dist/constants.d.ts +0 -1
- package/dist/index.d.ts +4 -1
- package/dist/index.esm.js +26861 -7800
- package/dist/index.js +26861 -7800
- package/dist/index.umd.js +2 -31
- package/package.json +2 -3
package/README.md
CHANGED
|
@@ -166,20 +166,6 @@ Resets the current user across all analytics providers, clears stored user data,
|
|
|
166
166
|
Analytics.resetUser();
|
|
167
167
|
```
|
|
168
168
|
|
|
169
|
-
### `setUserTag(key, value)`
|
|
170
|
-
|
|
171
|
-
Sets a user tag in Microsoft Clarity for enhanced user identification and session analysis.
|
|
172
|
-
|
|
173
|
-
**Parameters:**
|
|
174
|
-
- `key: string` - The tag key
|
|
175
|
-
- `value: string` - The tag value
|
|
176
|
-
|
|
177
|
-
**Example:**
|
|
178
|
-
```javascript
|
|
179
|
-
Analytics.setUserTag("user_type", "premium");
|
|
180
|
-
Analytics.setUserTag("subscription_plan", "pro");
|
|
181
|
-
```
|
|
182
|
-
|
|
183
169
|
### `setConfig(params?)`
|
|
184
170
|
|
|
185
171
|
Updates the analytics configuration with new parameters. This is a private method but can be called indirectly through `setUser()` or `resetUser()`.
|
|
@@ -433,10 +419,6 @@ console.log(attribution.funnelInfo, attribution.trackingParams);
|
|
|
433
419
|
// Get GA client ID
|
|
434
420
|
const gaClientId = await Analytics.getGAClientId();
|
|
435
421
|
|
|
436
|
-
// Set user tags for Clarity
|
|
437
|
-
Analytics.setUserTag("subscription", "premium");
|
|
438
|
-
Analytics.setUserTag("user_segment", "power_user");
|
|
439
|
-
|
|
440
422
|
// Update locale
|
|
441
423
|
Analytics.setLocale("fr");
|
|
442
424
|
|
|
@@ -452,7 +434,6 @@ Make sure to configure your analytics provider tokens in your constants file:
|
|
|
452
434
|
// constants.js
|
|
453
435
|
export const MIXPANEL_TOKEN = "your-mixpanel-token";
|
|
454
436
|
export const GOOGLE_ANALYTICS_ID = "your-ga-measurement-id";
|
|
455
|
-
export const CLARITY_ID = "your-clarity-project-id";
|
|
456
437
|
export const GA_SERVER_CONTAINER_URL = "your-server-container-url";
|
|
457
438
|
```
|
|
458
439
|
|
package/dist/constants.d.ts
CHANGED
|
@@ -5,7 +5,6 @@ export declare const GOOGLE_ANALYTICS_ID = "G-GYQLL028VQ";
|
|
|
5
5
|
export declare const GA_SERVER_CONTAINER_URL = "https://tagging.clearly.help";
|
|
6
6
|
export declare const MIXPANEL_TOKEN = "9d4cb3d213e5aee689ea01dd68ad65ad";
|
|
7
7
|
export declare const CUSTOMER_IO_WRITE_KEY = "e6d009719c77519432c3";
|
|
8
|
-
export declare const CLARITY_ID = "irbqmnlbwz";
|
|
9
8
|
export declare const SUPPORTED_LANGUAGES: string[];
|
|
10
9
|
export declare const GA_ECOMMERCE_EVENTS: string[];
|
|
11
10
|
export declare const INTERNAL_USER_EMAILS: string[];
|
package/dist/index.d.ts
CHANGED
|
@@ -21,7 +21,6 @@ declare class Analytics {
|
|
|
21
21
|
trackPageScroll?: boolean;
|
|
22
22
|
}): Promise<void>;
|
|
23
23
|
private processDataLayer;
|
|
24
|
-
setUserTag(key: string, value: string): void;
|
|
25
24
|
getGAClientId(): Promise<string | null>;
|
|
26
25
|
setGAClientId: (clientId: string) => void;
|
|
27
26
|
trackEvent(eventName: string, properties?: EventParams, services?: {
|
|
@@ -50,6 +49,10 @@ declare class Analytics {
|
|
|
50
49
|
getAttributionProperties(forcedAttributionProperties?: ForcedAttributionProperties): Promise<UserAttributionProperties>;
|
|
51
50
|
trackPageScroll(customElement?: HTMLElement): () => void;
|
|
52
51
|
trackFirstPartyEvent(eventName: string, properties?: EventParams, forcedAttributionProperties?: ForcedAttributionProperties): Promise<Response>;
|
|
52
|
+
recording: {
|
|
53
|
+
start: () => void;
|
|
54
|
+
stop: () => void;
|
|
55
|
+
};
|
|
53
56
|
}
|
|
54
57
|
declare const _default: Analytics;
|
|
55
58
|
export default _default;
|