@cuemath/web-utils 1.0.5 → 1.0.6

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cuemath/web-utils",
3
- "version": "1.0.5",
3
+ "version": "1.0.6",
4
4
  "description": "Shared web utils package",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
@@ -160,6 +160,7 @@ export const initSourceDetails = async ({
160
160
  organicChannel,
161
161
  performanceChannel,
162
162
  revenueChannel,
163
+ guestId,
163
164
  }: SourceDetails): Promise<void> => {
164
165
  const utmParams: Partial<UTMParams> = getUTMParams();
165
166
  const { utm_source: utmSource } = utmParams;
@@ -196,6 +197,7 @@ export const initSourceDetails = async ({
196
197
  performance_channel: performanceChannel,
197
198
  revenue_channel: revenueChannel,
198
199
  first_page: getFirstPage(),
200
+ guest_id: guestId,
199
201
  };
200
202
 
201
203
  writeSourceCookie(sourceDetails);
@@ -203,6 +205,7 @@ export const initSourceDetails = async ({
203
205
  let updatedSource: Partial<SourceDetailsCookie> = {
204
206
  experiment_dict: experiments,
205
207
  flow: flow || getFlow(platform, experiments),
208
+ guest_id: guestId,
206
209
  };
207
210
 
208
211
  if (utmSource) {
@@ -30,6 +30,7 @@ export type SourceDetailsCookie = {
30
30
  flow_entry?: string;
31
31
  first_page?: string;
32
32
  last_page?: string;
33
+ guest_id?: string;
33
34
  };
34
35
 
35
36
  export type SourceDetails = {
@@ -45,4 +46,5 @@ export type SourceDetails = {
45
46
  flowEntry?: string;
46
47
  firstPage?: string;
47
48
  lastPage?: string;
49
+ guestId?: string;
48
50
  };