@aranova/tracking-next 0.17.3 → 0.18.1
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 +50 -24
- package/dist/index.d.mts +171 -14
- package/dist/index.d.ts +171 -14
- package/dist/index.js +479 -28
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +457 -9
- package/dist/index.mjs.map +1 -1
- package/dist/middleware.js +82 -0
- package/dist/middleware.js.map +1 -1
- package/dist/middleware.mjs +82 -0
- package/dist/middleware.mjs.map +1 -1
- package/dist/{phone-utils-DlAQK-gU.d.mts → phone-utils-CVCzW04Z.d.mts} +7 -4
- package/dist/{phone-utils-DlAQK-gU.d.ts → phone-utils-CVCzW04Z.d.ts} +7 -4
- package/dist/phone.d.mts +1 -1
- package/dist/phone.d.ts +1 -1
- package/dist/phone.js +82 -0
- package/dist/phone.js.map +1 -1
- package/dist/phone.mjs +82 -0
- package/dist/phone.mjs.map +1 -1
- package/dist/{sales-C3jFBx08.d.mts → sales-QqKh6_iy.d.mts} +55 -2
- package/dist/{sales-C3jFBx08.d.ts → sales-QqKh6_iy.d.ts} +55 -2
- package/dist/sales.d.mts +1 -1
- package/dist/sales.d.ts +1 -1
- package/dist/sales.js +16 -0
- package/dist/sales.js.map +1 -1
- package/dist/sales.mjs +16 -0
- package/dist/sales.mjs.map +1 -1
- package/dist/server.d.mts +1 -1
- package/dist/server.d.ts +1 -1
- package/dist/server.js +82 -0
- package/dist/server.js.map +1 -1
- package/dist/server.mjs +82 -0
- package/dist/server.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { T as TrackingParams, a as TrackingInstallSurface, b as TrackingEnvironment, c as TrackingClientContext, d as TrackingEventCreatePayload, e as TrackingSessionUpsertPayload, F as FormSubmitConfig, f as FormSubmitMetadata, C as ConsentState, g as ConsentChoiceState, h as ConsentSource, G as GtagEnvironmentMap, M as MetaPixelEnvironmentMap, P as PhoneConfig, i as ParsedPhone, j as PhoneDisplayFormat } from './phone-utils-
|
|
2
|
-
export { k as ConsentChoice, D as DEFAULT_DECLINE_TTL_DAYS, l as DEFAULT_PHONE_COUNTRY, J as JsonValue, S as SetConsentOptions, m as TrackedField, n as TrackingInitConfig, o as formSubmitConfigSchema, p as formSubmitMetadataSchema, q as formatPhone, r as formatPhoneAsTyped, s as getConsentChoice, t as getConsentState, u as jsonValueSchema, v as onConsentChange, w as optIn, x as optOut, y as parsePhone, z as phoneField, A as resetConsent, B as setConsentState, E as toE164 } from './phone-utils-
|
|
3
|
-
import { C as ConversionConfig } from './sales-
|
|
4
|
-
export { A as AranovaApiError, B as BusinessConfig, a as BusinessConfigFeatures, b as BusinessConfigService, c as CompareTo, d as ConversionConfigStore, e as CurrencyRevenue, f as CustomerCurrencyDelta, g as CustomerCurrencyTotal, h as CustomerGetOptions, i as CustomerGetResult, j as CustomerKpis, k as CustomerKpisDeltas, l as CustomerKpisPrevious, m as CustomerListPage, n as CustomerListQuery, o as CustomerProfile, p as CustomerSegment, q as CustomerSegmentCount, r as CustomerSortField, s as CustomerSummary, t as CustomerSummaryQuery, D as DistinctCustomersByCurrency, G as Granularity, N as NAMED_RANGES, u as NamedRange, P as PublicServiceItem, S as SUPPORTED_CURRENCIES, v as Sale, w as SaleCursorPage, x as SaleFilters, y as SaleInput, z as SaleItem, E as SaleItemInput, F as SaleKeysetSortField, H as SaleListPage, I as SaleListQuery, J as SaleListQueryV2, K as SaleService, L as SaleServiceInput, M as SaleSortField, O as SaleSortOrder, Q as SaleSummary, R as SaleSummaryPrevious,
|
|
1
|
+
import { T as TrackingParams, a as TrackingInstallSurface, b as TrackingEnvironment, c as TrackingClientContext, d as TrackingEventCreatePayload, e as TrackingSessionUpsertPayload, F as FormSubmitConfig, f as FormSubmitMetadata, C as ConsentState, g as ConsentChoiceState, h as ConsentSource, G as GtagEnvironmentMap, M as MetaPixelEnvironmentMap, P as PhoneConfig, i as ParsedPhone, j as PhoneDisplayFormat } from './phone-utils-CVCzW04Z.js';
|
|
2
|
+
export { k as ConsentChoice, D as DEFAULT_DECLINE_TTL_DAYS, l as DEFAULT_PHONE_COUNTRY, J as JsonValue, S as SetConsentOptions, m as TrackedField, n as TrackingInitConfig, o as formSubmitConfigSchema, p as formSubmitMetadataSchema, q as formatPhone, r as formatPhoneAsTyped, s as getConsentChoice, t as getConsentState, u as jsonValueSchema, v as onConsentChange, w as optIn, x as optOut, y as parsePhone, z as phoneField, A as resetConsent, B as setConsentState, E as toE164 } from './phone-utils-CVCzW04Z.js';
|
|
3
|
+
import { T as TrackingConfigReference, C as ConversionConfig } from './sales-QqKh6_iy.js';
|
|
4
|
+
export { A as AranovaApiError, B as BusinessConfig, a as BusinessConfigFeatures, b as BusinessConfigService, c as CompareTo, d as ConversionConfigStore, e as CurrencyRevenue, f as CustomerCurrencyDelta, g as CustomerCurrencyTotal, h as CustomerGetOptions, i as CustomerGetResult, j as CustomerKpis, k as CustomerKpisDeltas, l as CustomerKpisPrevious, m as CustomerListPage, n as CustomerListQuery, o as CustomerProfile, p as CustomerSegment, q as CustomerSegmentCount, r as CustomerSortField, s as CustomerSummary, t as CustomerSummaryQuery, D as DistinctCustomersByCurrency, G as Granularity, N as NAMED_RANGES, u as NamedRange, P as PublicServiceItem, S as SUPPORTED_CURRENCIES, v as Sale, w as SaleCursorPage, x as SaleFilters, y as SaleInput, z as SaleItem, E as SaleItemInput, F as SaleKeysetSortField, H as SaleListPage, I as SaleListQuery, J as SaleListQueryV2, K as SaleService, L as SaleServiceInput, M as SaleSortField, O as SaleSortOrder, Q as SaleSummary, R as SaleSummaryPrevious, U as SaleSummaryQuery, V as SaleSummaryQueryV2, W as SaleSummaryV2, X as SaleUpdateInput, Y as SalesBusinessClient, Z as SalesCategoryBreakdown, _ as SalesClient, $ as SalesClientConfig, a0 as SalesCustomersClient, a1 as SalesServiceBreakdown, a2 as SalesTransportConfig, a3 as SalesTrendPoint, a4 as SummaryCurrencyDelta, a5 as SummaryDeltas, a6 as SummaryWindow, a7 as SupportedCurrency, a8 as TRACKING_RANGES, a9 as TrackingOverviewRange, aa as createSalesClient, ab as fetchServices, ac as formatDateInTz, ad as formatMoney, ae as fromMinor, af as getTrackingConfigRuntime, ag as resolveConversionConfig, ah as saleCreateSchema, ai as saleItemSchema, aj as saleServiceSchema, ak as saleUpdateSchema, al as salesRequest, am as toMinor } from './sales-QqKh6_iy.js';
|
|
5
5
|
import { z } from 'zod';
|
|
6
6
|
import * as src from 'src';
|
|
7
7
|
import * as react from 'react';
|
|
@@ -88,8 +88,8 @@ declare const ctaClickMetadataSchema: z.ZodObject<{
|
|
|
88
88
|
};
|
|
89
89
|
cta_name: string;
|
|
90
90
|
section?: string | null | undefined;
|
|
91
|
-
destination_url?: string | null | undefined;
|
|
92
91
|
href?: string | null | undefined;
|
|
92
|
+
destination_url?: string | null | undefined;
|
|
93
93
|
element?: string | null | undefined;
|
|
94
94
|
}, {
|
|
95
95
|
page: {
|
|
@@ -97,8 +97,8 @@ declare const ctaClickMetadataSchema: z.ZodObject<{
|
|
|
97
97
|
};
|
|
98
98
|
cta_name: string;
|
|
99
99
|
section?: string | null | undefined;
|
|
100
|
-
destination_url?: string | null | undefined;
|
|
101
100
|
href?: string | null | undefined;
|
|
101
|
+
destination_url?: string | null | undefined;
|
|
102
102
|
element?: string | null | undefined;
|
|
103
103
|
}>;
|
|
104
104
|
type CtaClickMetadata = z.infer<typeof ctaClickMetadataSchema>;
|
|
@@ -605,10 +605,101 @@ declare const timeOnSiteConfigSchema: z.ZodObject<{
|
|
|
605
605
|
}>;
|
|
606
606
|
type TimeOnSiteConfig = z.infer<typeof timeOnSiteConfigSchema>;
|
|
607
607
|
|
|
608
|
+
type EventOutcomeRole = "lead" | "engagement" | "navigation" | "diagnostic";
|
|
609
|
+
type EventCategory = "page" | "engagement" | "lead" | "commerce" | "system";
|
|
610
|
+
type EventClientVisibility = "simple" | "detailed" | "hidden";
|
|
611
|
+
interface EventSemantics {
|
|
612
|
+
label: string;
|
|
613
|
+
category: EventCategory;
|
|
614
|
+
outcomeRole: EventOutcomeRole;
|
|
615
|
+
clientVisibility: EventClientVisibility;
|
|
616
|
+
}
|
|
617
|
+
/**
|
|
618
|
+
* Lightweight runtime event metadata. This module intentionally imports no
|
|
619
|
+
* Zod schemas so dashboards and framework adapters can consume it without
|
|
620
|
+
* pulling the validation registry into their bundles.
|
|
621
|
+
*/
|
|
622
|
+
declare const EVENT_SEMANTICS: {
|
|
623
|
+
readonly page_view: {
|
|
624
|
+
readonly label: "Page view";
|
|
625
|
+
readonly category: "page";
|
|
626
|
+
readonly outcomeRole: "navigation";
|
|
627
|
+
readonly clientVisibility: "simple";
|
|
628
|
+
};
|
|
629
|
+
readonly time_on_site: {
|
|
630
|
+
readonly label: "Time on site";
|
|
631
|
+
readonly category: "engagement";
|
|
632
|
+
readonly outcomeRole: "engagement";
|
|
633
|
+
readonly clientVisibility: "detailed";
|
|
634
|
+
};
|
|
635
|
+
readonly specific_page_visit: {
|
|
636
|
+
readonly label: "Key page visit";
|
|
637
|
+
readonly category: "engagement";
|
|
638
|
+
readonly outcomeRole: "engagement";
|
|
639
|
+
readonly clientVisibility: "detailed";
|
|
640
|
+
};
|
|
641
|
+
readonly scroll_depth: {
|
|
642
|
+
readonly label: "Scroll depth";
|
|
643
|
+
readonly category: "engagement";
|
|
644
|
+
readonly outcomeRole: "engagement";
|
|
645
|
+
readonly clientVisibility: "detailed";
|
|
646
|
+
};
|
|
647
|
+
readonly multi_page_session: {
|
|
648
|
+
readonly label: "Multi-page session";
|
|
649
|
+
readonly category: "engagement";
|
|
650
|
+
readonly outcomeRole: "engagement";
|
|
651
|
+
readonly clientVisibility: "detailed";
|
|
652
|
+
};
|
|
653
|
+
readonly form_start: {
|
|
654
|
+
readonly label: "Form started";
|
|
655
|
+
readonly category: "engagement";
|
|
656
|
+
readonly outcomeRole: "engagement";
|
|
657
|
+
readonly clientVisibility: "simple";
|
|
658
|
+
};
|
|
659
|
+
readonly sdk_heartbeat: {
|
|
660
|
+
readonly label: "SDK heartbeat";
|
|
661
|
+
readonly category: "system";
|
|
662
|
+
readonly outcomeRole: "diagnostic";
|
|
663
|
+
readonly clientVisibility: "hidden";
|
|
664
|
+
};
|
|
665
|
+
readonly page_exit: {
|
|
666
|
+
readonly label: "Page exit";
|
|
667
|
+
readonly category: "engagement";
|
|
668
|
+
readonly outcomeRole: "diagnostic";
|
|
669
|
+
readonly clientVisibility: "detailed";
|
|
670
|
+
};
|
|
671
|
+
readonly form_submit: {
|
|
672
|
+
readonly label: "Form submitted";
|
|
673
|
+
readonly category: "lead";
|
|
674
|
+
readonly outcomeRole: "lead";
|
|
675
|
+
readonly clientVisibility: "simple";
|
|
676
|
+
};
|
|
677
|
+
readonly phone_click: {
|
|
678
|
+
readonly label: "Phone click";
|
|
679
|
+
readonly category: "lead";
|
|
680
|
+
readonly outcomeRole: "lead";
|
|
681
|
+
readonly clientVisibility: "simple";
|
|
682
|
+
};
|
|
683
|
+
readonly cta_click: {
|
|
684
|
+
readonly label: "CTA click";
|
|
685
|
+
readonly category: "engagement";
|
|
686
|
+
readonly outcomeRole: "engagement";
|
|
687
|
+
readonly clientVisibility: "simple";
|
|
688
|
+
};
|
|
689
|
+
};
|
|
690
|
+
type EventName = keyof typeof EVENT_SEMANTICS;
|
|
691
|
+
declare function getEventSemantics(eventName: string): EventSemantics | null;
|
|
692
|
+
|
|
608
693
|
type EventKind = "automatic" | "manual";
|
|
609
694
|
declare const EVENT_REGISTRY: {
|
|
610
695
|
readonly page_view: {
|
|
611
696
|
readonly kind: "automatic";
|
|
697
|
+
readonly semantics: {
|
|
698
|
+
readonly label: "Page view";
|
|
699
|
+
readonly category: "page";
|
|
700
|
+
readonly outcomeRole: "navigation";
|
|
701
|
+
readonly clientVisibility: "simple";
|
|
702
|
+
};
|
|
612
703
|
readonly metadataSchema: z.ZodObject<{
|
|
613
704
|
page: z.ZodObject<{
|
|
614
705
|
title: z.ZodNullable<z.ZodString>;
|
|
@@ -666,6 +757,12 @@ declare const EVENT_REGISTRY: {
|
|
|
666
757
|
};
|
|
667
758
|
readonly time_on_site: {
|
|
668
759
|
readonly kind: "automatic";
|
|
760
|
+
readonly semantics: {
|
|
761
|
+
readonly label: "Time on site";
|
|
762
|
+
readonly category: "engagement";
|
|
763
|
+
readonly outcomeRole: "engagement";
|
|
764
|
+
readonly clientVisibility: "detailed";
|
|
765
|
+
};
|
|
669
766
|
readonly metadataSchema: z.ZodObject<{
|
|
670
767
|
duration_ms: z.ZodNumber;
|
|
671
768
|
page: z.ZodObject<{
|
|
@@ -696,6 +793,12 @@ declare const EVENT_REGISTRY: {
|
|
|
696
793
|
};
|
|
697
794
|
readonly specific_page_visit: {
|
|
698
795
|
readonly kind: "automatic";
|
|
796
|
+
readonly semantics: {
|
|
797
|
+
readonly label: "Key page visit";
|
|
798
|
+
readonly category: "engagement";
|
|
799
|
+
readonly outcomeRole: "engagement";
|
|
800
|
+
readonly clientVisibility: "detailed";
|
|
801
|
+
};
|
|
699
802
|
readonly metadataSchema: z.ZodObject<{
|
|
700
803
|
page_name: z.ZodEnum<["contact_page", "about_page", "services_page", "booking_page", "location_page", "pricing_page", "faq_page", "testimonials_page"]>;
|
|
701
804
|
page: z.ZodObject<{
|
|
@@ -741,6 +844,12 @@ declare const EVENT_REGISTRY: {
|
|
|
741
844
|
};
|
|
742
845
|
readonly scroll_depth: {
|
|
743
846
|
readonly kind: "automatic";
|
|
847
|
+
readonly semantics: {
|
|
848
|
+
readonly label: "Scroll depth";
|
|
849
|
+
readonly category: "engagement";
|
|
850
|
+
readonly outcomeRole: "engagement";
|
|
851
|
+
readonly clientVisibility: "detailed";
|
|
852
|
+
};
|
|
744
853
|
readonly metadataSchema: z.ZodObject<{
|
|
745
854
|
depth_percent: z.ZodNumber;
|
|
746
855
|
page: z.ZodObject<{
|
|
@@ -771,6 +880,12 @@ declare const EVENT_REGISTRY: {
|
|
|
771
880
|
};
|
|
772
881
|
readonly multi_page_session: {
|
|
773
882
|
readonly kind: "automatic";
|
|
883
|
+
readonly semantics: {
|
|
884
|
+
readonly label: "Multi-page session";
|
|
885
|
+
readonly category: "engagement";
|
|
886
|
+
readonly outcomeRole: "engagement";
|
|
887
|
+
readonly clientVisibility: "detailed";
|
|
888
|
+
};
|
|
774
889
|
readonly metadataSchema: z.ZodObject<{
|
|
775
890
|
page_count: z.ZodNumber;
|
|
776
891
|
page: z.ZodObject<{
|
|
@@ -801,6 +916,12 @@ declare const EVENT_REGISTRY: {
|
|
|
801
916
|
};
|
|
802
917
|
readonly form_start: {
|
|
803
918
|
readonly kind: "automatic";
|
|
919
|
+
readonly semantics: {
|
|
920
|
+
readonly label: "Form started";
|
|
921
|
+
readonly category: "engagement";
|
|
922
|
+
readonly outcomeRole: "engagement";
|
|
923
|
+
readonly clientVisibility: "simple";
|
|
924
|
+
};
|
|
804
925
|
readonly metadataSchema: z.ZodObject<{
|
|
805
926
|
form: z.ZodObject<{
|
|
806
927
|
id: z.ZodString;
|
|
@@ -846,6 +967,12 @@ declare const EVENT_REGISTRY: {
|
|
|
846
967
|
};
|
|
847
968
|
readonly sdk_heartbeat: {
|
|
848
969
|
readonly kind: "automatic";
|
|
970
|
+
readonly semantics: {
|
|
971
|
+
readonly label: "SDK heartbeat";
|
|
972
|
+
readonly category: "system";
|
|
973
|
+
readonly outcomeRole: "diagnostic";
|
|
974
|
+
readonly clientVisibility: "hidden";
|
|
975
|
+
};
|
|
849
976
|
readonly metadataSchema: z.ZodObject<{
|
|
850
977
|
sdk_version: z.ZodString;
|
|
851
978
|
package_name: z.ZodNullable<z.ZodString>;
|
|
@@ -887,6 +1014,12 @@ declare const EVENT_REGISTRY: {
|
|
|
887
1014
|
};
|
|
888
1015
|
readonly page_exit: {
|
|
889
1016
|
readonly kind: "automatic";
|
|
1017
|
+
readonly semantics: {
|
|
1018
|
+
readonly label: "Page exit";
|
|
1019
|
+
readonly category: "engagement";
|
|
1020
|
+
readonly outcomeRole: "diagnostic";
|
|
1021
|
+
readonly clientVisibility: "detailed";
|
|
1022
|
+
};
|
|
890
1023
|
readonly metadataSchema: z.ZodObject<{
|
|
891
1024
|
dwell_ms: z.ZodNumber;
|
|
892
1025
|
max_scroll_percent: z.ZodNullable<z.ZodNumber>;
|
|
@@ -917,6 +1050,12 @@ declare const EVENT_REGISTRY: {
|
|
|
917
1050
|
};
|
|
918
1051
|
readonly form_submit: {
|
|
919
1052
|
readonly kind: "manual";
|
|
1053
|
+
readonly semantics: {
|
|
1054
|
+
readonly label: "Form submitted";
|
|
1055
|
+
readonly category: "lead";
|
|
1056
|
+
readonly outcomeRole: "lead";
|
|
1057
|
+
readonly clientVisibility: "simple";
|
|
1058
|
+
};
|
|
920
1059
|
readonly metadataSchema: z.ZodObject<{
|
|
921
1060
|
form: z.ZodObject<{
|
|
922
1061
|
id: z.ZodString;
|
|
@@ -996,6 +1135,12 @@ declare const EVENT_REGISTRY: {
|
|
|
996
1135
|
};
|
|
997
1136
|
readonly phone_click: {
|
|
998
1137
|
readonly kind: "manual";
|
|
1138
|
+
readonly semantics: {
|
|
1139
|
+
readonly label: "Phone click";
|
|
1140
|
+
readonly category: "lead";
|
|
1141
|
+
readonly outcomeRole: "lead";
|
|
1142
|
+
readonly clientVisibility: "simple";
|
|
1143
|
+
};
|
|
999
1144
|
readonly metadataSchema: z.ZodObject<{
|
|
1000
1145
|
phone_number: z.ZodString;
|
|
1001
1146
|
page: z.ZodObject<{
|
|
@@ -1039,6 +1184,12 @@ declare const EVENT_REGISTRY: {
|
|
|
1039
1184
|
};
|
|
1040
1185
|
readonly cta_click: {
|
|
1041
1186
|
readonly kind: "manual";
|
|
1187
|
+
readonly semantics: {
|
|
1188
|
+
readonly label: "CTA click";
|
|
1189
|
+
readonly category: "engagement";
|
|
1190
|
+
readonly outcomeRole: "engagement";
|
|
1191
|
+
readonly clientVisibility: "simple";
|
|
1192
|
+
};
|
|
1042
1193
|
readonly metadataSchema: z.ZodObject<{
|
|
1043
1194
|
cta_name: z.ZodString;
|
|
1044
1195
|
page: z.ZodObject<{
|
|
@@ -1058,8 +1209,8 @@ declare const EVENT_REGISTRY: {
|
|
|
1058
1209
|
};
|
|
1059
1210
|
cta_name: string;
|
|
1060
1211
|
section?: string | null | undefined;
|
|
1061
|
-
destination_url?: string | null | undefined;
|
|
1062
1212
|
href?: string | null | undefined;
|
|
1213
|
+
destination_url?: string | null | undefined;
|
|
1063
1214
|
element?: string | null | undefined;
|
|
1064
1215
|
}, {
|
|
1065
1216
|
page: {
|
|
@@ -1067,8 +1218,8 @@ declare const EVENT_REGISTRY: {
|
|
|
1067
1218
|
};
|
|
1068
1219
|
cta_name: string;
|
|
1069
1220
|
section?: string | null | undefined;
|
|
1070
|
-
destination_url?: string | null | undefined;
|
|
1071
1221
|
href?: string | null | undefined;
|
|
1222
|
+
destination_url?: string | null | undefined;
|
|
1072
1223
|
element?: string | null | undefined;
|
|
1073
1224
|
}>;
|
|
1074
1225
|
readonly configSchema: z.ZodObject<{
|
|
@@ -1090,10 +1241,6 @@ declare const EVENT_REGISTRY: {
|
|
|
1090
1241
|
}>;
|
|
1091
1242
|
};
|
|
1092
1243
|
};
|
|
1093
|
-
/**
|
|
1094
|
-
* Name of any event known to the tracking SDK.
|
|
1095
|
-
*/
|
|
1096
|
-
type EventName = keyof typeof EVENT_REGISTRY;
|
|
1097
1244
|
/**
|
|
1098
1245
|
* Event names that are fired by the SDK when their configured signal occurs.
|
|
1099
1246
|
*
|
|
@@ -1155,6 +1302,10 @@ declare const ALL_AUTOMATIC_EVENT_NAMES: readonly AutomaticEventName[];
|
|
|
1155
1302
|
* Runtime list of manual event names.
|
|
1156
1303
|
*/
|
|
1157
1304
|
declare const ALL_MANUAL_EVENT_NAMES: readonly ManualEventName[];
|
|
1305
|
+
/**
|
|
1306
|
+
* Events that represent a lead/outcome in first-party tracking projections.
|
|
1307
|
+
*/
|
|
1308
|
+
declare const ALL_LEAD_EVENT_NAMES: readonly EventName[];
|
|
1158
1309
|
/**
|
|
1159
1310
|
* Trigger registry passed to `createTracking({ triggers })`.
|
|
1160
1311
|
*
|
|
@@ -1218,6 +1369,7 @@ type TrackableEvent<TRegistry extends TriggerRegistryConfig> = {
|
|
|
1218
1369
|
}[RegisteredManualEvents<TRegistry>];
|
|
1219
1370
|
declare function getEventDefinition(name: EventName): {
|
|
1220
1371
|
kind: EventKind;
|
|
1372
|
+
semantics: EventSemantics;
|
|
1221
1373
|
metadataSchema: z.ZodTypeAny;
|
|
1222
1374
|
configSchema: z.ZodTypeAny;
|
|
1223
1375
|
};
|
|
@@ -1459,6 +1611,10 @@ interface AdPlatformTrackingProps {
|
|
|
1459
1611
|
gtagId?: string;
|
|
1460
1612
|
/** Labelled Google Ads tag map — ALL loaded; wins over `gtagId`. */
|
|
1461
1613
|
gtagIds?: GtagEnvironmentMap;
|
|
1614
|
+
/** R2-authoritative Google tracking config. When set, static gtagId(s) are ignored. */
|
|
1615
|
+
trackingConfig?: TrackingConfigReference;
|
|
1616
|
+
/** Fire a Google page view from this standalone loader. Leave false when using TrackingProvider. */
|
|
1617
|
+
standalonePageView?: boolean;
|
|
1462
1618
|
/** Single Meta Pixel id, e.g. `123456789012345`. */
|
|
1463
1619
|
metaPixelId?: string;
|
|
1464
1620
|
/** Labelled Meta Pixel map — ALL loaded; wins over `metaPixelId`. */
|
|
@@ -1470,7 +1626,7 @@ interface AdPlatformTrackingProps {
|
|
|
1470
1626
|
* `next/script`. Render once in the root layout; omit a platform's props to
|
|
1471
1627
|
* skip it. Renders no visible UI.
|
|
1472
1628
|
*/
|
|
1473
|
-
declare function AdPlatformTracking({ gtagId, gtagIds, metaPixelId, metaPixelIds, }: AdPlatformTrackingProps): react_jsx_runtime.JSX.Element;
|
|
1629
|
+
declare function AdPlatformTracking({ gtagId, gtagIds, trackingConfig, standalonePageView, metaPixelId, metaPixelIds, }: AdPlatformTrackingProps): react_jsx_runtime.JSX.Element;
|
|
1474
1630
|
|
|
1475
1631
|
/**
|
|
1476
1632
|
* Props for the Next.js Google Ads tracking component.
|
|
@@ -1543,6 +1699,7 @@ interface CreateTrackingOptions<TRegistry extends TriggerRegistryConfig> {
|
|
|
1543
1699
|
cdnUrl: string;
|
|
1544
1700
|
baked?: ConversionConfig | null;
|
|
1545
1701
|
};
|
|
1702
|
+
trackingConfig?: TrackingConfigReference;
|
|
1546
1703
|
}
|
|
1547
1704
|
interface TrackingProviderProps {
|
|
1548
1705
|
/**
|
|
@@ -1631,4 +1788,4 @@ interface PhoneFieldProps extends Omit<InputHTMLAttributes<HTMLInputElement>, "t
|
|
|
1631
1788
|
*/
|
|
1632
1789
|
declare const PhoneField: react.ForwardRefExoticComponent<PhoneFieldProps & react.RefAttributes<HTMLInputElement>>;
|
|
1633
1790
|
|
|
1634
|
-
export { ALL_AUTOMATIC_EVENT_NAMES, ALL_MANUAL_EVENT_NAMES, AdPlatformTracking, type AdPlatformTrackingProps, type AutomaticEventName, ConsentBanner, type ConsentBannerProps, ConsentChoiceState, ConsentSource, ConsentState, ConversionConfig, type CreateTrackingOptions, type CreateTrackingResult, type CtaClickConfig, type CtaClickMetadata, EVENT_REGISTRY, type EventConfig, type EventKind, type EventMetadata, type EventName, type FormStartConfig, type FormStartMetadata, FormSubmitConfig, FormSubmitMetadata, GoogleAdsTracking, type GoogleAdsTrackingProps, GtagEnvironmentMap, type ManualEventName, MetaPixelEnvironmentMap, type MultiPageSessionConfig, type MultiPageSessionMetadata, type PageExitConfig, type PageExitMetadata, type PageViewConfig, type PageViewMetadata, ParsedPhone, type PhoneClickConfig, type PhoneClickMetadata, PhoneConfig, PhoneDisplayFormat, PhoneField, type PhoneFieldApi, type PhoneFieldProps, type PhoneInputProps, type RegisteredAutomaticEvents, type RegisteredManualEvents, SPECIFIC_PAGE_NAMES, type ScrollDepthConfig, type ScrollDepthMetadata, type SdkHeartbeatConfig, type SdkHeartbeatMetadata, type SpecificPageName, type SpecificPageVisitConfig, type SpecificPageVisitMetadata, TRACKING_PARAM_KEYS, type TimeOnSiteConfig, type TimeOnSiteMetadata, type TrackableEvent, type TrackingClient, TrackingClientContext, TrackingEventCreatePayload, TrackingInstallSurface, TrackingParams, type TrackingProviderProps, TrackingSessionUpsertPayload, type TriggerRegistryConfig, type TypedTrackEventOptions, type TypedTrackingClient, type UseConsentResult, type UseCookiePreferencesOptions, type UseCookiePreferencesResult, type UsePhoneFieldOptions, captureTrackingParamsFromLocation, createTracking, createTrackingClientContext, createTrackingEventCreatePayload, createTrackingSessionUpsertPayload, ctaClickConfigSchema, ctaClickMetadataSchema, formStartConfigSchema, formStartMetadataSchema, getEventDefinition, multiPageSessionConfigSchema, multiPageSessionMetadataSchema, pageExitConfigSchema, pageExitMetadataSchema, pageViewConfigSchema, pageViewMetadataSchema, phoneClickConfigSchema, phoneClickMetadataSchema, scrollDepthConfigSchema, scrollDepthMetadataSchema, sdkHeartbeatConfigSchema, sdkHeartbeatMetadataSchema, sdkHeartbeatTriggersSchema, specificPageNameSchema, specificPageVisitConfigSchema, specificPageVisitMetadataSchema, timeOnSiteConfigSchema, timeOnSiteMetadataSchema, useConsent, useConsentState, useCookiePreferences, useGclid, usePhoneConfig, usePhoneField, useTrackingParams };
|
|
1791
|
+
export { ALL_AUTOMATIC_EVENT_NAMES, ALL_LEAD_EVENT_NAMES, ALL_MANUAL_EVENT_NAMES, AdPlatformTracking, type AdPlatformTrackingProps, type AutomaticEventName, ConsentBanner, type ConsentBannerProps, ConsentChoiceState, ConsentSource, ConsentState, ConversionConfig, type CreateTrackingOptions, type CreateTrackingResult, type CtaClickConfig, type CtaClickMetadata, EVENT_REGISTRY, EVENT_SEMANTICS, type EventCategory, type EventClientVisibility, type EventConfig, type EventKind, type EventMetadata, type EventName, type EventOutcomeRole, type EventSemantics, type FormStartConfig, type FormStartMetadata, FormSubmitConfig, FormSubmitMetadata, GoogleAdsTracking, type GoogleAdsTrackingProps, GtagEnvironmentMap, type ManualEventName, MetaPixelEnvironmentMap, type MultiPageSessionConfig, type MultiPageSessionMetadata, type PageExitConfig, type PageExitMetadata, type PageViewConfig, type PageViewMetadata, ParsedPhone, type PhoneClickConfig, type PhoneClickMetadata, PhoneConfig, PhoneDisplayFormat, PhoneField, type PhoneFieldApi, type PhoneFieldProps, type PhoneInputProps, type RegisteredAutomaticEvents, type RegisteredManualEvents, SPECIFIC_PAGE_NAMES, type ScrollDepthConfig, type ScrollDepthMetadata, type SdkHeartbeatConfig, type SdkHeartbeatMetadata, type SpecificPageName, type SpecificPageVisitConfig, type SpecificPageVisitMetadata, TRACKING_PARAM_KEYS, type TimeOnSiteConfig, type TimeOnSiteMetadata, type TrackableEvent, type TrackingClient, TrackingClientContext, TrackingConfigReference, TrackingEventCreatePayload, TrackingInstallSurface, TrackingParams, type TrackingProviderProps, TrackingSessionUpsertPayload, type TriggerRegistryConfig, type TypedTrackEventOptions, type TypedTrackingClient, type UseConsentResult, type UseCookiePreferencesOptions, type UseCookiePreferencesResult, type UsePhoneFieldOptions, captureTrackingParamsFromLocation, createTracking, createTrackingClientContext, createTrackingEventCreatePayload, createTrackingSessionUpsertPayload, ctaClickConfigSchema, ctaClickMetadataSchema, formStartConfigSchema, formStartMetadataSchema, getEventDefinition, getEventSemantics, multiPageSessionConfigSchema, multiPageSessionMetadataSchema, pageExitConfigSchema, pageExitMetadataSchema, pageViewConfigSchema, pageViewMetadataSchema, phoneClickConfigSchema, phoneClickMetadataSchema, scrollDepthConfigSchema, scrollDepthMetadataSchema, sdkHeartbeatConfigSchema, sdkHeartbeatMetadataSchema, sdkHeartbeatTriggersSchema, specificPageNameSchema, specificPageVisitConfigSchema, specificPageVisitMetadataSchema, timeOnSiteConfigSchema, timeOnSiteMetadataSchema, useConsent, useConsentState, useCookiePreferences, useGclid, usePhoneConfig, usePhoneField, useTrackingParams };
|