shopkit-analytics 1.0.0
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/LICENSE +21 -0
- package/README.md +769 -0
- package/dist/adapters/index.d.mts +4 -0
- package/dist/adapters/index.d.ts +4 -0
- package/dist/adapters/index.js +2405 -0
- package/dist/adapters/index.js.map +1 -0
- package/dist/adapters/index.mjs +23 -0
- package/dist/adapters/index.mjs.map +1 -0
- package/dist/affiliate/index.d.mts +138 -0
- package/dist/affiliate/index.d.ts +138 -0
- package/dist/affiliate/index.js +816 -0
- package/dist/affiliate/index.js.map +1 -0
- package/dist/affiliate/index.mjs +74 -0
- package/dist/affiliate/index.mjs.map +1 -0
- package/dist/affiliate-tracker-BgHwibPv.d.mts +144 -0
- package/dist/affiliate-tracker-BgHwibPv.d.ts +144 -0
- package/dist/chunk-3TQR5DOP.mjs +79 -0
- package/dist/chunk-3TQR5DOP.mjs.map +1 -0
- package/dist/chunk-4MZH5OLR.mjs +2375 -0
- package/dist/chunk-4MZH5OLR.mjs.map +1 -0
- package/dist/chunk-JVEGG6JV.mjs +213 -0
- package/dist/chunk-JVEGG6JV.mjs.map +1 -0
- package/dist/chunk-P4OJDCEZ.mjs +57 -0
- package/dist/chunk-P4OJDCEZ.mjs.map +1 -0
- package/dist/chunk-TNXTKEGS.mjs +758 -0
- package/dist/chunk-TNXTKEGS.mjs.map +1 -0
- package/dist/events/index.d.mts +112 -0
- package/dist/events/index.d.ts +112 -0
- package/dist/events/index.js +2131 -0
- package/dist/events/index.js.map +1 -0
- package/dist/events/index.mjs +30 -0
- package/dist/events/index.mjs.map +1 -0
- package/dist/index-BnNRgdUv.d.ts +676 -0
- package/dist/index-GODWc1s6.d.mts +676 -0
- package/dist/index.d.mts +38 -0
- package/dist/index.d.ts +38 -0
- package/dist/index.js +3269 -0
- package/dist/index.js.map +1 -0
- package/dist/index.mjs +190 -0
- package/dist/index.mjs.map +1 -0
- package/dist/subscriber-43gnCKWe.d.ts +80 -0
- package/dist/subscriber-IFZJU57V.mjs +8 -0
- package/dist/subscriber-IFZJU57V.mjs.map +1 -0
- package/dist/subscriber-sWesj_5p.d.mts +80 -0
- package/dist/types.d.mts +991 -0
- package/dist/types.d.ts +991 -0
- package/dist/types.js +102 -0
- package/dist/types.js.map +1 -0
- package/dist/types.mjs +8 -0
- package/dist/types.mjs.map +1 -0
- package/package.json +110 -0
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
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-BnNRgdUv.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-BnNRgdUv.js';
|
|
4
|
+
import { T as TrackingAdapter } from './subscriber-43gnCKWe.js';
|
|
5
|
+
export { e as eventSubscriber } from './subscriber-43gnCKWe.js';
|
|
6
|
+
import { A as AffiliateConfig } from './affiliate-tracker-BgHwibPv.js';
|
|
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, ICartPageLandEvent, ICartViewedEvent, ICheckoutCompletedEvent, ICheckoutPaymentEvent, ICheckoutStartedEvent, ICloseCartEvent, ICouponCopiedEvent, ICustomEvent, ICustomerLoggedInEvent, ICustomerRegisteredEvent, IFilterAppliedEvent, IFirstVisitEvent, IFormStartEvent, IFormSubmissionEvent, IItemPurchasedEvent, IKPMPPhoneNumberLoggedInEvent, IKPMPShopifyLoggedInEvent, IKPMPSuccessfullyLoggedOutEvent, IKPMPTruecallerLoggedInEvent, IKPMPWhatsAppLoggedInEvent, IKPPhoneNumberLoggedInEvent, IKPShopifyLoggedInEvent, IKPSuccessfullyLoggedOutEvent, IKPTruecallerLoggedInEvent, IKPWhatsAppLoggedInEvent, IMobileAddedGKEvent, INewsletterSubscriptionEvent, IOrderCompletedEvent, IOrderPlacedEvent, IOrderSuccessEvent, IPCollectionViewEvent, IPageViewEvent, IPagesScreensPerSessionEvent, IPaymentCompletedGKEvent, IPaymentMethodSelectedGKEvent, IPinCodeAddedGKEvent, IProductViewEvent, IPurchaseEvent, IQuantityChangeEvent, IRemoveFromCartEvent, IScrollEvent, ISearchEvent, ISessionStartEvent, IShopifyAbandonedCheckoutEvent, IShopifyAddToCartEvent, IShopifyCheckoutStartedEvent, IShopifyCheckoutUpdatedEvent, IShopifyOrderFulfilledEvent, IShopifyRemoveFromCartEvent, IShopifyUpdateCartEvent, ISpinformResultEvent, IStartedCheckoutGKEvent, IStartedOrderEvent, IUpdateCartEvent, IUserEngagementEvent, IUserLoginEvent, IUserSignupEvent, IViewContentEvent, IViewItemEvent, IViewSearchResultsEvent, IViewedProductEvent, TEvent } from './types.js';
|
|
9
|
+
export { DEFAULT_CURRENCY, EventNames, HARDCODED_HANDLE, eventPublisher, initTracking, initializeEventTracking, publishEvent } from './events/index.js';
|
|
10
|
+
import '@shopify/hydrogen-react';
|
|
11
|
+
|
|
12
|
+
interface ShopkitAnalyticsConfig {
|
|
13
|
+
googleAnalytics?: GoogleAdapterConfig;
|
|
14
|
+
facebookPixel?: PixelAdapterConfig;
|
|
15
|
+
moengage?: MoengageAdapterConfig;
|
|
16
|
+
posthog?: PostHogAdapterConfig;
|
|
17
|
+
shopify?: ShopifyAdapterConfig;
|
|
18
|
+
kwikpass?: KwikPassConfig;
|
|
19
|
+
kwikcheckout?: KwikCheckoutConfig;
|
|
20
|
+
customAdapters?: TrackingAdapter[];
|
|
21
|
+
affiliate?: {
|
|
22
|
+
enabled?: boolean;
|
|
23
|
+
config?: Partial<AffiliateConfig>;
|
|
24
|
+
autoCapture?: boolean;
|
|
25
|
+
};
|
|
26
|
+
logger?: LoggerConfig;
|
|
27
|
+
enableDebugLogs?: boolean;
|
|
28
|
+
autoInitialize?: boolean;
|
|
29
|
+
}
|
|
30
|
+
interface ShopkitAnalyticsProps {
|
|
31
|
+
config: ShopkitAnalyticsConfig;
|
|
32
|
+
children?: React.ReactNode;
|
|
33
|
+
onInitialized?: () => void;
|
|
34
|
+
onError?: (error: Error) => void;
|
|
35
|
+
}
|
|
36
|
+
declare const ShopkitAnalytics: React.FC<ShopkitAnalyticsProps>;
|
|
37
|
+
|
|
38
|
+
export { AffiliateConfig, GoogleAdapterConfig, KwikCheckoutConfig, KwikPassConfig, LoggerConfig, MoengageAdapterConfig, PixelAdapterConfig, PostHogAdapterConfig, ShopifyAdapterConfig, ShopkitAnalytics, type ShopkitAnalyticsConfig, type ShopkitAnalyticsProps, TrackingAdapter, ShopkitAnalytics as default };
|