shopkit-analytics 1.0.1 → 1.0.3
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 +193 -3
- package/dist/adapters/index.d.mts +3 -2
- package/dist/adapters/index.d.ts +3 -2
- package/dist/adapters/index.js +1220 -615
- package/dist/adapters/index.js.map +1 -1
- package/dist/adapters/index.mjs +4 -2
- package/dist/{chunk-3TQR5DOP.mjs → chunk-3NR2AKE4.mjs} +1 -31
- package/dist/chunk-3NR2AKE4.mjs.map +1 -0
- package/dist/chunk-4RDPDMGW.mjs +68 -0
- package/dist/chunk-4RDPDMGW.mjs.map +1 -0
- package/dist/{chunk-JVEGG6JV.mjs → chunk-HCA4E2RA.mjs} +19 -13
- package/dist/chunk-HCA4E2RA.mjs.map +1 -0
- package/dist/chunk-NC25KOAF.mjs +156 -0
- package/dist/chunk-NC25KOAF.mjs.map +1 -0
- package/dist/chunk-NGPUKV7E.mjs +46 -0
- package/dist/chunk-NGPUKV7E.mjs.map +1 -0
- package/dist/{chunk-4MZH5OLR.mjs → chunk-NJQ2MOM2.mjs} +1145 -618
- package/dist/chunk-NJQ2MOM2.mjs.map +1 -0
- package/dist/chunk-NKDB4KX2.mjs +2 -0
- package/dist/{chunk-P4OJDCEZ.mjs → chunk-QCS5UARA.mjs} +3 -3
- package/dist/events/index.d.mts +9 -41
- package/dist/events/index.d.ts +9 -41
- package/dist/events/index.js +973 -498
- package/dist/events/index.js.map +1 -1
- package/dist/events/index.mjs +11 -11
- package/dist/experiment/index.d.mts +25 -0
- package/dist/experiment/index.d.ts +25 -0
- package/dist/experiment/index.js +74 -0
- package/dist/experiment/index.js.map +1 -0
- package/dist/experiment/index.mjs +15 -0
- package/dist/experiment/index.mjs.map +1 -0
- package/dist/{index-BnNRgdUv.d.ts → index-D_8w5bL_.d.ts} +87 -17
- package/dist/{index-GODWc1s6.d.mts → index-th6sBtE3.d.mts} +87 -17
- package/dist/index.d.mts +10 -6
- package/dist/index.d.ts +10 -6
- package/dist/index.js +1408 -660
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +31 -10
- package/dist/index.mjs.map +1 -1
- package/dist/services/index.d.mts +51 -0
- package/dist/services/index.d.ts +51 -0
- package/dist/services/index.js +180 -0
- package/dist/services/index.js.map +1 -0
- package/dist/services/index.mjs +11 -0
- package/dist/services/index.mjs.map +1 -0
- package/dist/{subscriber-43gnCKWe.d.ts → subscriber-BDAm_BAi.d.ts} +38 -2
- package/dist/{subscriber-sWesj_5p.d.mts → subscriber-BoyOlh9t.d.mts} +38 -2
- package/dist/subscriber-VF3IYUCU.mjs +8 -0
- package/dist/subscriber-VF3IYUCU.mjs.map +1 -0
- package/dist/types-C__2IBCj.d.mts +7 -0
- package/dist/types-C__2IBCj.d.ts +7 -0
- package/dist/types.d.mts +4 -340
- package/dist/types.d.ts +4 -340
- package/dist/types.js +0 -30
- package/dist/types.js.map +1 -1
- package/dist/types.mjs +1 -1
- package/dist/utils/index.d.mts +19 -0
- package/dist/utils/index.d.ts +19 -0
- package/dist/utils/index.js +93 -0
- package/dist/utils/index.js.map +1 -0
- package/dist/utils/index.mjs +12 -0
- package/dist/utils/index.mjs.map +1 -0
- package/package.json +21 -8
- package/templates/nextjs/README.md +206 -0
- package/templates/nextjs/api-events-route.ts +62 -0
- package/dist/chunk-3TQR5DOP.mjs.map +0 -1
- package/dist/chunk-4MZH5OLR.mjs.map +0 -1
- package/dist/chunk-JVEGG6JV.mjs.map +0 -1
- package/dist/subscriber-IFZJU57V.mjs +0 -8
- /package/dist/{subscriber-IFZJU57V.mjs.map → chunk-NKDB4KX2.mjs.map} +0 -0
- /package/dist/{chunk-P4OJDCEZ.mjs.map → chunk-QCS5UARA.mjs.map} +0 -0
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { TEvent } from './types.mjs';
|
|
2
|
-
import { T as TrackingAdapter } from './subscriber-
|
|
2
|
+
import { T as TrackingAdapter, a as TAdapterParams, b as IBaseAdapterParams } from './subscriber-BoyOlh9t.mjs';
|
|
3
|
+
import { E as ExperimentData } from './types-C__2IBCj.mjs';
|
|
3
4
|
import { AnalyticsEventName, ShopifyAnalyticsProduct, ShopifyPageViewPayload } from '@shopify/hydrogen-react';
|
|
4
5
|
|
|
5
6
|
/**
|
|
@@ -78,8 +79,29 @@ declare abstract class BaseAdapter implements TrackingAdapter {
|
|
|
78
79
|
/**
|
|
79
80
|
* Track an event
|
|
80
81
|
* @param event The event to track
|
|
82
|
+
* @param params Optional adapter-specific parameters
|
|
81
83
|
*/
|
|
82
|
-
abstract trackEvent(event: TEvent): Promise<void>;
|
|
84
|
+
abstract trackEvent(event: TEvent, params?: TAdapterParams): Promise<void>;
|
|
85
|
+
/**
|
|
86
|
+
* Extract adapter-specific parameters for this adapter
|
|
87
|
+
* @param params The adapter parameters object
|
|
88
|
+
* @returns Adapter-specific parameters or empty object
|
|
89
|
+
*/
|
|
90
|
+
protected getAdapterParams(params?: TAdapterParams): IBaseAdapterParams;
|
|
91
|
+
/**
|
|
92
|
+
* Get custom event name or fall back to default
|
|
93
|
+
* @param params The adapter parameters object
|
|
94
|
+
* @param defaultName The default event name to use
|
|
95
|
+
* @returns Custom event name or default
|
|
96
|
+
*/
|
|
97
|
+
protected getEventName(params: TAdapterParams | undefined, defaultName: string): string;
|
|
98
|
+
/**
|
|
99
|
+
* Merge standard event data with adapter-specific parameters
|
|
100
|
+
* @param params The adapter parameters object
|
|
101
|
+
* @param standardData The standard event data
|
|
102
|
+
* @returns Merged data with adapter-specific overrides
|
|
103
|
+
*/
|
|
104
|
+
protected mergeEventData(standardData: Record<string, any>, params: TAdapterParams | undefined): Record<string, any>;
|
|
83
105
|
/**
|
|
84
106
|
* Get a configuration value
|
|
85
107
|
* @param key The configuration key
|
|
@@ -92,17 +114,30 @@ declare abstract class BaseAdapter implements TrackingAdapter {
|
|
|
92
114
|
* @returns Affiliate parameters or null if not available
|
|
93
115
|
*/
|
|
94
116
|
protected getAffiliateParams(): Record<string, string> | null;
|
|
117
|
+
/**
|
|
118
|
+
* Get experiment parameters from cookies
|
|
119
|
+
* @returns Experiment parameters
|
|
120
|
+
*/
|
|
121
|
+
protected getExperimentParams(): ExperimentData;
|
|
95
122
|
/**
|
|
96
123
|
* Enhance event parameters with affiliate data
|
|
97
124
|
* @param params The original parameters
|
|
98
125
|
* @returns Parameters enhanced with affiliate data
|
|
99
126
|
*/
|
|
100
127
|
protected enhanceWithAffiliateParams(params: Record<string, any>): Record<string, any>;
|
|
128
|
+
/**
|
|
129
|
+
* Enhance event parameters with experiment data
|
|
130
|
+
* @param params The original parameters
|
|
131
|
+
* @returns Parameters enhanced with experiment data
|
|
132
|
+
*/
|
|
133
|
+
protected enhanceWithExperimentParams(params: Record<string, any>): Record<string, any>;
|
|
101
134
|
}
|
|
102
135
|
|
|
103
136
|
declare global {
|
|
104
137
|
interface Window {
|
|
105
|
-
fbq?: (type: string, eventName: string, params?: Record<string, any
|
|
138
|
+
fbq?: (type: string, eventName: string, params?: Record<string, any>, options?: {
|
|
139
|
+
eventID?: string;
|
|
140
|
+
}) => void;
|
|
106
141
|
}
|
|
107
142
|
}
|
|
108
143
|
/**
|
|
@@ -113,6 +148,11 @@ interface PixelAdapterConfig {
|
|
|
113
148
|
* Facebook Pixel ID
|
|
114
149
|
*/
|
|
115
150
|
pixelId: string;
|
|
151
|
+
/**
|
|
152
|
+
* Enable server-side CAPI backup
|
|
153
|
+
* @default true - CAPI is enabled by default for better data reliability
|
|
154
|
+
*/
|
|
155
|
+
enableCAPI?: boolean;
|
|
116
156
|
}
|
|
117
157
|
/**
|
|
118
158
|
* Facebook Pixel tracking adapter
|
|
@@ -128,8 +168,17 @@ declare class PixelAdapter extends BaseAdapter {
|
|
|
128
168
|
/**
|
|
129
169
|
* Track an event with Facebook Pixel
|
|
130
170
|
* @param event The event to track
|
|
171
|
+
* @param adapterParams Optional adapter-specific parameters
|
|
131
172
|
*/
|
|
132
|
-
trackEvent(event: TEvent): Promise<void>;
|
|
173
|
+
trackEvent(event: TEvent, adapterParams?: TAdapterParams): Promise<void>;
|
|
174
|
+
/**
|
|
175
|
+
* Track event on client-side (browser pixel)
|
|
176
|
+
*/
|
|
177
|
+
private trackClientSide;
|
|
178
|
+
/**
|
|
179
|
+
* Track event on server-side (CAPI) as backup
|
|
180
|
+
*/
|
|
181
|
+
private trackServerSide;
|
|
133
182
|
/**
|
|
134
183
|
* Track a page view event
|
|
135
184
|
* @param event The page view event
|
|
@@ -175,11 +224,6 @@ declare class PixelAdapter extends BaseAdapter {
|
|
|
175
224
|
* @param event The purchase event
|
|
176
225
|
*/
|
|
177
226
|
private trackPurchase;
|
|
178
|
-
/**
|
|
179
|
-
* Convert an event to Facebook Pixel parameters
|
|
180
|
-
* @param event The event to convert
|
|
181
|
-
*/
|
|
182
|
-
private eventToParams;
|
|
183
227
|
}
|
|
184
228
|
|
|
185
229
|
declare global {
|
|
@@ -212,8 +256,9 @@ declare class GoogleAdapter extends BaseAdapter {
|
|
|
212
256
|
/**
|
|
213
257
|
* Track an event with Google Analytics
|
|
214
258
|
* @param event The event to track
|
|
259
|
+
* @param adapterParams Optional adapter-specific parameters
|
|
215
260
|
*/
|
|
216
|
-
trackEvent(event: TEvent): Promise<void>;
|
|
261
|
+
trackEvent(event: TEvent, adapterParams?: TAdapterParams): Promise<void>;
|
|
217
262
|
/**
|
|
218
263
|
* Track a page view event
|
|
219
264
|
* @param event The page view event
|
|
@@ -314,66 +359,79 @@ declare class MoengageAdapter extends BaseAdapter {
|
|
|
314
359
|
/**
|
|
315
360
|
* Track an event with MoenGage SDK
|
|
316
361
|
* @param event The event to track
|
|
362
|
+
* @param adapterParams Optional adapter-specific parameters
|
|
317
363
|
*/
|
|
318
|
-
trackEvent(event: TEvent): Promise<void>;
|
|
364
|
+
trackEvent(event: TEvent, adapterParams?: TAdapterParams): Promise<void>;
|
|
319
365
|
/**
|
|
320
366
|
* Track a page view event
|
|
321
367
|
* @param event The page view event
|
|
368
|
+
* @param adapterParams Optional adapter-specific parameters
|
|
322
369
|
*/
|
|
323
370
|
private trackPageView;
|
|
324
371
|
/**
|
|
325
372
|
* Track a button click event
|
|
326
373
|
* @param event The button click event
|
|
374
|
+
* @param adapterParams Optional adapter-specific parameters
|
|
327
375
|
*/
|
|
328
376
|
private trackButtonClick;
|
|
329
377
|
/**
|
|
330
378
|
* Track a form submission event
|
|
331
379
|
* @param event The form submission event
|
|
380
|
+
* @param adapterParams Optional adapter-specific parameters
|
|
332
381
|
*/
|
|
333
382
|
private trackFormSubmission;
|
|
334
383
|
/**
|
|
335
384
|
* Track a product view event
|
|
336
385
|
* @param event The product view event
|
|
386
|
+
* @param adapterParams Optional adapter-specific parameters
|
|
337
387
|
*/
|
|
338
388
|
private trackProductView;
|
|
339
389
|
/**
|
|
340
390
|
* Track an add to cart event
|
|
341
391
|
* @param event The add to cart event
|
|
392
|
+
* @param adapterParams Optional adapter-specific parameters
|
|
342
393
|
*/
|
|
343
394
|
private trackAddToCart;
|
|
344
395
|
/**
|
|
345
396
|
* Track a remove from cart event
|
|
346
397
|
* @param event The remove from cart event
|
|
398
|
+
* @param adapterParams Optional adapter-specific parameters
|
|
347
399
|
*/
|
|
348
400
|
private trackRemoveFromCart;
|
|
349
401
|
/**
|
|
350
402
|
* Track a checkout started event
|
|
351
403
|
* @param event The checkout started event
|
|
404
|
+
* @param adapterParams Optional adapter-specific parameters
|
|
352
405
|
*/
|
|
353
406
|
private trackCheckoutStarted;
|
|
354
407
|
/**
|
|
355
408
|
* Track a checkout completed event
|
|
356
409
|
* @param event The checkout completed event
|
|
410
|
+
* @param adapterParams Optional adapter-specific parameters
|
|
357
411
|
*/
|
|
358
412
|
private trackCheckoutCompleted;
|
|
359
413
|
/**
|
|
360
414
|
* Track a search event
|
|
361
415
|
* @param event The search event
|
|
416
|
+
* @param adapterParams Optional adapter-specific parameters
|
|
362
417
|
*/
|
|
363
418
|
private trackSearch;
|
|
364
419
|
/**
|
|
365
420
|
* Track a user signup event
|
|
366
421
|
* @param event The user signup event
|
|
422
|
+
* @param adapterParams Optional adapter-specific parameters
|
|
367
423
|
*/
|
|
368
424
|
private trackUserSignup;
|
|
369
425
|
/**
|
|
370
426
|
* Track a user login event
|
|
371
427
|
* @param event The user login event
|
|
428
|
+
* @param adapterParams Optional adapter-specific parameters
|
|
372
429
|
*/
|
|
373
430
|
private trackUserLogin;
|
|
374
431
|
/**
|
|
375
432
|
* Track a custom event
|
|
376
433
|
* @param event The custom event
|
|
434
|
+
* @param adapterParams Optional adapter-specific parameters
|
|
377
435
|
*/
|
|
378
436
|
private trackCustomEvent;
|
|
379
437
|
/**
|
|
@@ -419,41 +477,49 @@ declare class PostHogAdapter extends BaseAdapter {
|
|
|
419
477
|
/**
|
|
420
478
|
* Track an event with PostHog
|
|
421
479
|
* @param event The event to track
|
|
480
|
+
* @param adapterParams Optional adapter-specific parameters
|
|
422
481
|
*/
|
|
423
|
-
trackEvent(event: TEvent): Promise<void>;
|
|
482
|
+
trackEvent(event: TEvent, adapterParams?: TAdapterParams): Promise<void>;
|
|
424
483
|
/**
|
|
425
484
|
* Track a page view event
|
|
426
485
|
* @param event The page view event
|
|
486
|
+
* @param adapterParams Optional adapter-specific parameters
|
|
427
487
|
*/
|
|
428
488
|
private trackPageView;
|
|
429
489
|
/**
|
|
430
490
|
* Track a product view event
|
|
431
491
|
* @param event The product view event
|
|
492
|
+
* @param adapterParams Optional adapter-specific parameters
|
|
432
493
|
*/
|
|
433
494
|
private trackProductView;
|
|
434
495
|
/**
|
|
435
496
|
* Track an add to cart event
|
|
436
497
|
* @param event The add to cart event
|
|
498
|
+
* @param adapterParams Optional adapter-specific parameters
|
|
437
499
|
*/
|
|
438
500
|
private trackAddToCart;
|
|
439
501
|
/**
|
|
440
502
|
* Track a checkout started event
|
|
441
503
|
* @param event The checkout started event
|
|
504
|
+
* @param adapterParams Optional adapter-specific parameters
|
|
442
505
|
*/
|
|
443
506
|
private trackCheckoutStarted;
|
|
444
507
|
/**
|
|
445
508
|
* Track a checkout completed event
|
|
446
509
|
* @param event The checkout completed event
|
|
510
|
+
* @param adapterParams Optional adapter-specific parameters
|
|
447
511
|
*/
|
|
448
512
|
private trackCheckoutCompleted;
|
|
449
513
|
/**
|
|
450
514
|
* Track a search event
|
|
451
515
|
* @param event The search event
|
|
516
|
+
* @param adapterParams Optional adapter-specific parameters
|
|
452
517
|
*/
|
|
453
518
|
private trackSearch;
|
|
454
519
|
/**
|
|
455
520
|
* Track an add payment info event
|
|
456
521
|
* @param event The add payment info event
|
|
522
|
+
* @param adapterParams Optional adapter-specific parameters
|
|
457
523
|
*/
|
|
458
524
|
private trackAddPaymentInfo;
|
|
459
525
|
/**
|
|
@@ -530,7 +596,7 @@ declare class ShopifyAdapter extends BaseAdapter {
|
|
|
530
596
|
/**
|
|
531
597
|
* Track an event using Shopify Analytics
|
|
532
598
|
*/
|
|
533
|
-
trackEvent(event: TEvent): Promise<void>;
|
|
599
|
+
trackEvent(event: TEvent, adapterParams?: TAdapterParams): Promise<void>;
|
|
534
600
|
/**
|
|
535
601
|
* Check if Shopify session is properly established
|
|
536
602
|
*/
|
|
@@ -565,18 +631,20 @@ declare class KwikPassAdapter extends BaseAdapter {
|
|
|
565
631
|
initialize(): Promise<void>;
|
|
566
632
|
/**
|
|
567
633
|
* Track an event using KwikPass
|
|
634
|
+
* @param event The event to track
|
|
635
|
+
* @param adapterParams Optional adapter-specific parameters
|
|
568
636
|
*/
|
|
569
|
-
trackEvent(event: TEvent): Promise<void>;
|
|
637
|
+
trackEvent(event: TEvent, adapterParams?: TAdapterParams): Promise<void>;
|
|
570
638
|
/**
|
|
571
639
|
* Send event to KwikPass platform
|
|
572
640
|
*/
|
|
573
641
|
private sendKwikPassEvent;
|
|
574
642
|
/**
|
|
575
|
-
* Track
|
|
643
|
+
* Track collection view event
|
|
576
644
|
*/
|
|
577
645
|
private trackCollectionView;
|
|
578
646
|
/**
|
|
579
|
-
* Track
|
|
647
|
+
* Track product view event
|
|
580
648
|
*/
|
|
581
649
|
private trackProductView;
|
|
582
650
|
/**
|
|
@@ -609,8 +677,10 @@ declare class KwikCheckoutAdapter extends BaseAdapter {
|
|
|
609
677
|
initialize(): Promise<void>;
|
|
610
678
|
/**
|
|
611
679
|
* Track an event using GoKwik
|
|
680
|
+
* @param event The event to track
|
|
681
|
+
* @param adapterParams Optional adapter-specific parameters
|
|
612
682
|
*/
|
|
613
|
-
trackEvent(event: TEvent): Promise<void>;
|
|
683
|
+
trackEvent(event: TEvent, adapterParams?: TAdapterParams): Promise<void>;
|
|
614
684
|
/**
|
|
615
685
|
* Send event to GoKwik platform
|
|
616
686
|
*/
|
package/dist/index.d.mts
CHANGED
|
@@ -1,12 +1,16 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { G as GoogleAdapterConfig, P as PixelAdapterConfig, M as MoengageAdapterConfig, a as PostHogAdapterConfig, S as ShopifyAdapterConfig, K as KwikPassConfig, b as KwikCheckoutConfig, L as LoggerConfig } from './index-
|
|
3
|
-
export { B as BaseAdapter, d as GoogleAdapter, i as KwikCheckoutAdapter, h as KwikPassAdapter, j as Logger, e as MoengageAdapter, c as PixelAdapter, f as PostHogAdapter, g as ShopifyAdapter, m as createAdapterLogger, k as createLogger, l as logger } from './index-
|
|
4
|
-
import { T as TrackingAdapter } from './subscriber-
|
|
5
|
-
export { e as eventSubscriber } from './subscriber-
|
|
2
|
+
import { G as GoogleAdapterConfig, P as PixelAdapterConfig, M as MoengageAdapterConfig, a as PostHogAdapterConfig, S as ShopifyAdapterConfig, K as KwikPassConfig, b as KwikCheckoutConfig, L as LoggerConfig } from './index-th6sBtE3.mjs';
|
|
3
|
+
export { B as BaseAdapter, d as GoogleAdapter, i as KwikCheckoutAdapter, h as KwikPassAdapter, j as Logger, e as MoengageAdapter, c as PixelAdapter, f as PostHogAdapter, g as ShopifyAdapter, m as createAdapterLogger, k as createLogger, l as logger } from './index-th6sBtE3.mjs';
|
|
4
|
+
import { T as TrackingAdapter } from './subscriber-BoyOlh9t.mjs';
|
|
5
|
+
export { I as IAdapterParams, b as IBaseAdapterParams, a as TAdapterParams, e as eventSubscriber } from './subscriber-BoyOlh9t.mjs';
|
|
6
6
|
import { A as AffiliateConfig } from './affiliate-tracker-BgHwibPv.mjs';
|
|
7
7
|
export { k as AffiliateData, j as AffiliateParams, a as AffiliateTracker, i as AffiliateTrackerProps, d as captureAffiliateParams, e as clearAffiliateParams, g as getAffiliateParams, f as getAffiliateSource, h as hasAffiliateData, c as useAffiliateSource, u as useAffiliateTracker, b as useHasAffiliateData } from './affiliate-tracker-BgHwibPv.mjs';
|
|
8
|
-
export { BaseEvent, EventType, IAddPaymentInfoEvent, IAddToCartEvent, IAddressAddedGKEvent, IAddressCompletedGKEvent, IAddressSelectedGKEvent, IBeginCheckoutEvent, IButtonClickEvent,
|
|
9
|
-
export { DEFAULT_CURRENCY, EventNames,
|
|
8
|
+
export { BaseEvent, EventType, IAddPaymentInfoEvent, IAddToCartEvent, IAddressAddedGKEvent, IAddressCompletedGKEvent, IAddressSelectedGKEvent, IBeginCheckoutEvent, IButtonClickEvent, ICartViewedEvent, ICheckoutCompletedEvent, ICheckoutPaymentEvent, ICheckoutStartedEvent, ICustomEvent, IFirstVisitEvent, IFormStartEvent, IFormSubmissionEvent, IMobileAddedGKEvent, IOrderCompletedEvent, IOrderPlacedEvent, IOrderSuccessEvent, IPCollectionViewEvent, IPageViewEvent, IPaymentCompletedGKEvent, IPaymentMethodSelectedGKEvent, IPinCodeAddedGKEvent, IProductViewEvent, IPurchaseEvent, IRemoveFromCartEvent, IScrollEvent, ISearchEvent, ISessionStartEvent, IStartedCheckoutGKEvent, IUserEngagementEvent, IUserLoginEvent, IUserSignupEvent, IViewContentEvent, IViewItemEvent, IViewSearchResultsEvent, IViewedProductEvent, TEvent } from './types.mjs';
|
|
9
|
+
export { DEFAULT_CURRENCY, EventNames, eventPublisher, initTracking, initializeEventTracking, publishEvent } from './events/index.mjs';
|
|
10
|
+
export { E as ExperimentData } from './types-C__2IBCj.mjs';
|
|
11
|
+
export { PRIMA_EXPERIMENT_COOKIES, PRIMA_EXPERIMENT_COOKIE_NAMES, getExperimentParams, hasExperimentData } from './experiment/index.mjs';
|
|
12
|
+
export { generateEventId, getBrowserInfo } from './utils/index.mjs';
|
|
13
|
+
export { FacebookCAPIConfig, FacebookCAPIService, createFacebookCAPIService } from './services/index.mjs';
|
|
10
14
|
import '@shopify/hydrogen-react';
|
|
11
15
|
|
|
12
16
|
interface ShopkitAnalyticsConfig {
|
package/dist/index.d.ts
CHANGED
|
@@ -1,12 +1,16 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { G as GoogleAdapterConfig, P as PixelAdapterConfig, M as MoengageAdapterConfig, a as PostHogAdapterConfig, S as ShopifyAdapterConfig, K as KwikPassConfig, b as KwikCheckoutConfig, L as LoggerConfig } from './index-
|
|
3
|
-
export { B as BaseAdapter, d as GoogleAdapter, i as KwikCheckoutAdapter, h as KwikPassAdapter, j as Logger, e as MoengageAdapter, c as PixelAdapter, f as PostHogAdapter, g as ShopifyAdapter, m as createAdapterLogger, k as createLogger, l as logger } from './index-
|
|
4
|
-
import { T as TrackingAdapter } from './subscriber-
|
|
5
|
-
export { e as eventSubscriber } from './subscriber-
|
|
2
|
+
import { G as GoogleAdapterConfig, P as PixelAdapterConfig, M as MoengageAdapterConfig, a as PostHogAdapterConfig, S as ShopifyAdapterConfig, K as KwikPassConfig, b as KwikCheckoutConfig, L as LoggerConfig } from './index-D_8w5bL_.js';
|
|
3
|
+
export { B as BaseAdapter, d as GoogleAdapter, i as KwikCheckoutAdapter, h as KwikPassAdapter, j as Logger, e as MoengageAdapter, c as PixelAdapter, f as PostHogAdapter, g as ShopifyAdapter, m as createAdapterLogger, k as createLogger, l as logger } from './index-D_8w5bL_.js';
|
|
4
|
+
import { T as TrackingAdapter } from './subscriber-BDAm_BAi.js';
|
|
5
|
+
export { I as IAdapterParams, b as IBaseAdapterParams, a as TAdapterParams, e as eventSubscriber } from './subscriber-BDAm_BAi.js';
|
|
6
6
|
import { A as AffiliateConfig } from './affiliate-tracker-BgHwibPv.js';
|
|
7
7
|
export { k as AffiliateData, j as AffiliateParams, a as AffiliateTracker, i as AffiliateTrackerProps, d as captureAffiliateParams, e as clearAffiliateParams, g as getAffiliateParams, f as getAffiliateSource, h as hasAffiliateData, c as useAffiliateSource, u as useAffiliateTracker, b as useHasAffiliateData } from './affiliate-tracker-BgHwibPv.js';
|
|
8
|
-
export { BaseEvent, EventType, IAddPaymentInfoEvent, IAddToCartEvent, IAddressAddedGKEvent, IAddressCompletedGKEvent, IAddressSelectedGKEvent, IBeginCheckoutEvent, IButtonClickEvent,
|
|
9
|
-
export { DEFAULT_CURRENCY, EventNames,
|
|
8
|
+
export { BaseEvent, EventType, IAddPaymentInfoEvent, IAddToCartEvent, IAddressAddedGKEvent, IAddressCompletedGKEvent, IAddressSelectedGKEvent, IBeginCheckoutEvent, IButtonClickEvent, ICartViewedEvent, ICheckoutCompletedEvent, ICheckoutPaymentEvent, ICheckoutStartedEvent, ICustomEvent, IFirstVisitEvent, IFormStartEvent, IFormSubmissionEvent, IMobileAddedGKEvent, IOrderCompletedEvent, IOrderPlacedEvent, IOrderSuccessEvent, IPCollectionViewEvent, IPageViewEvent, IPaymentCompletedGKEvent, IPaymentMethodSelectedGKEvent, IPinCodeAddedGKEvent, IProductViewEvent, IPurchaseEvent, IRemoveFromCartEvent, IScrollEvent, ISearchEvent, ISessionStartEvent, IStartedCheckoutGKEvent, IUserEngagementEvent, IUserLoginEvent, IUserSignupEvent, IViewContentEvent, IViewItemEvent, IViewSearchResultsEvent, IViewedProductEvent, TEvent } from './types.js';
|
|
9
|
+
export { DEFAULT_CURRENCY, EventNames, eventPublisher, initTracking, initializeEventTracking, publishEvent } from './events/index.js';
|
|
10
|
+
export { E as ExperimentData } from './types-C__2IBCj.js';
|
|
11
|
+
export { PRIMA_EXPERIMENT_COOKIES, PRIMA_EXPERIMENT_COOKIE_NAMES, getExperimentParams, hasExperimentData } from './experiment/index.js';
|
|
12
|
+
export { generateEventId, getBrowserInfo } from './utils/index.js';
|
|
13
|
+
export { FacebookCAPIConfig, FacebookCAPIService, createFacebookCAPIService } from './services/index.js';
|
|
10
14
|
import '@shopify/hydrogen-react';
|
|
11
15
|
|
|
12
16
|
interface ShopkitAnalyticsConfig {
|