@artisan-commerce/analytics-web 0.2.0-canary.85 → 0.2.0-canary.87
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/dist/bundle.cjs.js +1362 -279
- package/dist/bundle.cjs.js.map +1 -1
- package/dist/bundle.d.ts +39 -1
- package/dist/bundle.esm.js +1363 -280
- package/dist/bundle.esm.js.map +1 -1
- package/dist/bundle.umd.js +1362 -279
- package/dist/bundle.umd.js.map +1 -1
- package/package.json +3 -3
package/dist/bundle.d.ts
CHANGED
|
@@ -432,9 +432,36 @@ interface FacebookPixelProvider extends Omit<AnalyticsProviderConstructor, "type
|
|
|
432
432
|
* @interface FacebookPixelProvider
|
|
433
433
|
* @since 0.1.0
|
|
434
434
|
* @property {CurrencyCodes} currency user's country monetary code
|
|
435
|
+
* @property {boolean} isTrackingAllowed whether user tracking is allowed
|
|
436
|
+
* @property {boolean} withConversionsAPI whether conversion API feature is allowed
|
|
437
|
+
* @property {FacebookConversionsApiConfig} conversionsApiConfig facebook conversions API configuration
|
|
435
438
|
*/
|
|
436
439
|
interface FacebookPixelProviderConfig {
|
|
437
440
|
currency?: CurrencyCodes;
|
|
441
|
+
isTrackingAllowed?: boolean;
|
|
442
|
+
withConversionsAPI?: boolean;
|
|
443
|
+
conversionsApiConfig?: FacebookConversionsApiConfig;
|
|
444
|
+
}
|
|
445
|
+
/**
|
|
446
|
+
* Facebook Conversions API configuration.
|
|
447
|
+
*
|
|
448
|
+
* @interface FacebookConversionsApiConfig
|
|
449
|
+
* @since 0.1.0
|
|
450
|
+
* @implements FacebookPixelProviderConfig
|
|
451
|
+
* @property {string} eventSourceUrl website url
|
|
452
|
+
* @property {string} countryISOCode user's country ISO code in lowercase (e.g. "ec")
|
|
453
|
+
* @property {string} fbAccessToken Facebook pixel token
|
|
454
|
+
* @property {string} fbPixelId Facebook pixel id
|
|
455
|
+
* @property {string} apiURL api URL
|
|
456
|
+
* @property {string} authToken user's authorization token
|
|
457
|
+
*/
|
|
458
|
+
interface FacebookConversionsApiConfig {
|
|
459
|
+
eventSourceUrl: string;
|
|
460
|
+
countryISOCode: string;
|
|
461
|
+
fbAccessToken: string;
|
|
462
|
+
fbPixelId: string;
|
|
463
|
+
apiURL: string;
|
|
464
|
+
authToken: string;
|
|
438
465
|
}
|
|
439
466
|
/**
|
|
440
467
|
* Facebook Pixel event shared parameters.
|
|
@@ -469,6 +496,12 @@ declare namespace Fbq {
|
|
|
469
496
|
currency?: string;
|
|
470
497
|
value?: number;
|
|
471
498
|
}
|
|
499
|
+
interface Product {
|
|
500
|
+
id?: string;
|
|
501
|
+
quantity?: number;
|
|
502
|
+
item_price?: number;
|
|
503
|
+
delivery_category?: string;
|
|
504
|
+
}
|
|
472
505
|
}
|
|
473
506
|
|
|
474
507
|
/**
|
|
@@ -606,6 +639,9 @@ declare abstract class AnalyticsProvider implements IAnaliticsProvider {
|
|
|
606
639
|
declare class FacebookPixel extends AnalyticsProvider {
|
|
607
640
|
private readonly _version;
|
|
608
641
|
private _currency;
|
|
642
|
+
private _isTrackingAllowed;
|
|
643
|
+
private _conversionsApiConfig;
|
|
644
|
+
readonly withConversionsAPI: FacebookPixelProvider["withConversionsAPI"];
|
|
609
645
|
/**
|
|
610
646
|
* Contructs a Facebook Pixel Provider
|
|
611
647
|
*
|
|
@@ -616,6 +652,8 @@ declare class FacebookPixel extends AnalyticsProvider {
|
|
|
616
652
|
constructor(config: FacebookPixelProvider);
|
|
617
653
|
get version(): FacebookPixelProvider["version"];
|
|
618
654
|
get currency(): FacebookPixelProvider["currency"];
|
|
655
|
+
get isTrackingAllowed(): FacebookPixelProvider["isTrackingAllowed"];
|
|
656
|
+
get conversionsApiConfig(): FacebookPixelProvider["conversionsApiConfig"];
|
|
619
657
|
/**
|
|
620
658
|
* @override
|
|
621
659
|
* @since 0.1.0
|
|
@@ -5746,4 +5784,4 @@ declare const identifyUser: (identify: Segment$1.Traits) => void;
|
|
|
5746
5784
|
*/
|
|
5747
5785
|
declare const checkInit: () => boolean;
|
|
5748
5786
|
|
|
5749
|
-
export { AnalyticsMeta, AnalyticsProvidersConfigs, AuthProviderMethods, FacebookPixelCommonEventParams, FacebookPixelCustomEventParams, FacebookPixelProvider, FacebookPixelProviderConfig, Fbq, GoogleAnalyticsCommonEventParams, GoogleAnalyticsCustomEventParams, GoogleAnalyticsProvider, GoogleAnalyticsProviderConfig, Gtag, InitAnalyticsConfig, InitAnalyticsConfigMeta, Providers, Segment$1 as Segment, SegmentCommonEventParams, SegmentCustomEventParams, SegmentProvider, SegmentProviderConfig, SupportedProviders, checkInit, events, identifyUser, initAnalytics, updateActiveVendor };
|
|
5787
|
+
export { AnalyticsMeta, AnalyticsProvidersConfigs, AuthProviderMethods, FacebookConversionsApiConfig, FacebookPixelCommonEventParams, FacebookPixelCustomEventParams, FacebookPixelProvider, FacebookPixelProviderConfig, Fbq, GoogleAnalyticsCommonEventParams, GoogleAnalyticsCustomEventParams, GoogleAnalyticsProvider, GoogleAnalyticsProviderConfig, Gtag, InitAnalyticsConfig, InitAnalyticsConfigMeta, Providers, Segment$1 as Segment, SegmentCommonEventParams, SegmentCustomEventParams, SegmentProvider, SegmentProviderConfig, SupportedProviders, checkInit, events, identifyUser, initAnalytics, updateActiveVendor };
|