gotrip-fx-transaction-form 1.0.281-dev → 1.0.284-dev
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/index.js +2969 -2959
- package/package.json +1 -1
- package/types/embeded-main.d.ts +1 -0
- package/types/store/useTrackingStore.d.ts +2 -0
- package/types/types/tracking.dto.d.ts +2 -0
- package/types/util/tracking.d.ts +0 -10
package/package.json
CHANGED
package/types/embeded-main.d.ts
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { TrackingDto } from '../types/tracking.dto';
|
|
2
2
|
export type TrackingState = {
|
|
3
3
|
anonymousId: string | null;
|
|
4
|
+
utm: Record<string, string> | null;
|
|
4
5
|
getAnonymousUid: () => string;
|
|
5
6
|
getTrackingData: () => TrackingDto;
|
|
7
|
+
setUtm: (utm: Record<string, string> | null) => void;
|
|
6
8
|
_saveAnonymousUid: (uid: string) => void;
|
|
7
9
|
};
|
|
8
10
|
export declare const useTrackingStore: import('zustand').UseBoundStore<import('zustand').StoreApi<TrackingState>>;
|
|
@@ -11,6 +11,8 @@ export interface TrackingDto {
|
|
|
11
11
|
fbid?: string;
|
|
12
12
|
/** Campaign identifier */
|
|
13
13
|
campaign?: string;
|
|
14
|
+
/** UTM and ad network parameters (utm_source, utm_campaign, gclid, fbclid, ttclid, etc.) */
|
|
15
|
+
utm?: Record<string, string>;
|
|
14
16
|
}
|
|
15
17
|
/**
|
|
16
18
|
* Type helper to extend any DTO with tracking fields
|
package/types/util/tracking.d.ts
CHANGED
|
@@ -13,16 +13,6 @@ export declare const saveAnonymousUid: (uid: string) => void;
|
|
|
13
13
|
* If not found, generates a new one and saves it
|
|
14
14
|
*/
|
|
15
15
|
export declare const getAnonymousUid: () => string;
|
|
16
|
-
/**
|
|
17
|
-
* Parse tracking parameters from URL query string
|
|
18
|
-
* Extracts gclid, fbid, campaign, etc. from URL
|
|
19
|
-
*/
|
|
20
|
-
export declare const parseTrackingParamsFromUrl: () => {
|
|
21
|
-
gclid?: string;
|
|
22
|
-
fbid?: string;
|
|
23
|
-
campaign?: string;
|
|
24
|
-
[key: string]: string | undefined;
|
|
25
|
-
};
|
|
26
16
|
/**
|
|
27
17
|
* Validate tracking data
|
|
28
18
|
*/
|