@aranova/tracking-next 0.4.1 → 0.5.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/dist/index.d.mts CHANGED
@@ -105,7 +105,8 @@ type PageViewMetadata = z.infer<typeof pageViewMetadataSchema>;
105
105
  declare const pageViewConfigSchema: z.ZodObject<{}, "strict", z.ZodTypeAny, {}, {}>;
106
106
  type PageViewConfig = z.infer<typeof pageViewConfigSchema>;
107
107
 
108
- declare const contactPageVisitMetadataSchema: z.ZodObject<{
108
+ declare const ctaClickMetadataSchema: z.ZodObject<{
109
+ cta_name: z.ZodString;
109
110
  page: z.ZodObject<{
110
111
  path: z.ZodString;
111
112
  }, "strip", z.ZodTypeAny, {
@@ -113,35 +114,110 @@ declare const contactPageVisitMetadataSchema: z.ZodObject<{
113
114
  }, {
114
115
  path: string;
115
116
  }>;
117
+ section: z.ZodOptional<z.ZodNullable<z.ZodString>>;
118
+ destination_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
116
119
  }, "strict", z.ZodTypeAny, {
117
120
  page: {
118
121
  path: string;
119
122
  };
123
+ cta_name: string;
124
+ section?: string | null | undefined;
125
+ destination_url?: string | null | undefined;
120
126
  }, {
121
127
  page: {
122
128
  path: string;
123
129
  };
130
+ cta_name: string;
131
+ section?: string | null | undefined;
132
+ destination_url?: string | null | undefined;
124
133
  }>;
125
- type ContactPageVisitMetadata = z.infer<typeof contactPageVisitMetadataSchema>;
126
- declare const contactPageVisitConfigSchema: z.ZodObject<{
127
- pathPattern: z.ZodType<RegExp, z.ZodTypeDef, RegExp>;
134
+ type CtaClickMetadata = z.infer<typeof ctaClickMetadataSchema>;
135
+ declare const ctaClickConfigSchema: z.ZodObject<{}, "strict", z.ZodTypeAny, {}, {}>;
136
+ type CtaClickConfig = z.infer<typeof ctaClickConfigSchema>;
137
+
138
+ declare const formStartMetadataSchema: z.ZodObject<{
139
+ form: z.ZodObject<{
140
+ id: z.ZodString;
141
+ action: z.ZodNullable<z.ZodString>;
142
+ }, "strip", z.ZodTypeAny, {
143
+ id: string;
144
+ action: string | null;
145
+ }, {
146
+ id: string;
147
+ action: string | null;
148
+ }>;
149
+ page: z.ZodObject<{
150
+ path: z.ZodString;
151
+ }, "strip", z.ZodTypeAny, {
152
+ path: string;
153
+ }, {
154
+ path: string;
155
+ }>;
156
+ }, "strict", z.ZodTypeAny, {
157
+ form: {
158
+ id: string;
159
+ action: string | null;
160
+ };
161
+ page: {
162
+ path: string;
163
+ };
164
+ }, {
165
+ form: {
166
+ id: string;
167
+ action: string | null;
168
+ };
169
+ page: {
170
+ path: string;
171
+ };
172
+ }>;
173
+ type FormStartMetadata = z.infer<typeof formStartMetadataSchema>;
174
+ declare const formStartConfigSchema: z.ZodObject<{
175
+ selector: z.ZodOptional<z.ZodString>;
128
176
  }, "strict", z.ZodTypeAny, {
129
- pathPattern: RegExp;
177
+ selector?: string | undefined;
130
178
  }, {
131
- pathPattern: RegExp;
179
+ selector?: string | undefined;
132
180
  }>;
133
- type ContactPageVisitConfig = z.infer<typeof contactPageVisitConfigSchema>;
181
+ type FormStartConfig = z.infer<typeof formStartConfigSchema>;
134
182
 
135
183
  declare const formSubmitMetadataSchema: z.ZodObject<{
136
184
  form: z.ZodObject<{
137
185
  id: z.ZodString;
138
186
  action: z.ZodNullable<z.ZodString>;
187
+ fields: z.ZodOptional<z.ZodArray<z.ZodObject<{
188
+ name: z.ZodString;
189
+ type: z.ZodString;
190
+ label: z.ZodNullable<z.ZodString>;
191
+ has_value: z.ZodBoolean;
192
+ }, "strip", z.ZodTypeAny, {
193
+ label: string | null;
194
+ type: string;
195
+ name: string;
196
+ has_value: boolean;
197
+ }, {
198
+ label: string | null;
199
+ type: string;
200
+ name: string;
201
+ has_value: boolean;
202
+ }>, "many">>;
139
203
  }, "strip", z.ZodTypeAny, {
140
204
  id: string;
141
205
  action: string | null;
206
+ fields?: {
207
+ label: string | null;
208
+ type: string;
209
+ name: string;
210
+ has_value: boolean;
211
+ }[] | undefined;
142
212
  }, {
143
213
  id: string;
144
214
  action: string | null;
215
+ fields?: {
216
+ label: string | null;
217
+ type: string;
218
+ name: string;
219
+ has_value: boolean;
220
+ }[] | undefined;
145
221
  }>;
146
222
  page: z.ZodObject<{
147
223
  path: z.ZodString;
@@ -154,6 +230,12 @@ declare const formSubmitMetadataSchema: z.ZodObject<{
154
230
  form: {
155
231
  id: string;
156
232
  action: string | null;
233
+ fields?: {
234
+ label: string | null;
235
+ type: string;
236
+ name: string;
237
+ has_value: boolean;
238
+ }[] | undefined;
157
239
  };
158
240
  page: {
159
241
  path: string;
@@ -162,6 +244,12 @@ declare const formSubmitMetadataSchema: z.ZodObject<{
162
244
  form: {
163
245
  id: string;
164
246
  action: string | null;
247
+ fields?: {
248
+ label: string | null;
249
+ type: string;
250
+ name: string;
251
+ has_value: boolean;
252
+ }[] | undefined;
165
253
  };
166
254
  page: {
167
255
  path: string;
@@ -171,20 +259,38 @@ type FormSubmitMetadata = z.infer<typeof formSubmitMetadataSchema>;
171
259
  declare const formSubmitConfigSchema: z.ZodObject<{}, "strict", z.ZodTypeAny, {}, {}>;
172
260
  type FormSubmitConfig = z.infer<typeof formSubmitConfigSchema>;
173
261
 
174
- declare const phoneClickMetadataSchema: z.ZodObject<{
175
- element: z.ZodObject<{
176
- tag: z.ZodString;
177
- text: z.ZodNullable<z.ZodString>;
178
- href: z.ZodString;
262
+ declare const multiPageSessionMetadataSchema: z.ZodObject<{
263
+ page_count: z.ZodNumber;
264
+ page: z.ZodObject<{
265
+ path: z.ZodString;
179
266
  }, "strip", z.ZodTypeAny, {
180
- text: string | null;
181
- tag: string;
182
- href: string;
267
+ path: string;
183
268
  }, {
184
- text: string | null;
185
- tag: string;
186
- href: string;
269
+ path: string;
187
270
  }>;
271
+ }, "strict", z.ZodTypeAny, {
272
+ page: {
273
+ path: string;
274
+ };
275
+ page_count: number;
276
+ }, {
277
+ page: {
278
+ path: string;
279
+ };
280
+ page_count: number;
281
+ }>;
282
+ type MultiPageSessionMetadata = z.infer<typeof multiPageSessionMetadataSchema>;
283
+ declare const multiPageSessionConfigSchema: z.ZodObject<{
284
+ pageThreshold: z.ZodNumber;
285
+ }, "strict", z.ZodTypeAny, {
286
+ pageThreshold: number;
287
+ }, {
288
+ pageThreshold: number;
289
+ }>;
290
+ type MultiPageSessionConfig = z.infer<typeof multiPageSessionConfigSchema>;
291
+
292
+ declare const phoneClickMetadataSchema: z.ZodObject<{
293
+ phone_number: z.ZodString;
188
294
  page: z.ZodObject<{
189
295
  path: z.ZodString;
190
296
  }, "strip", z.ZodTypeAny, {
@@ -192,29 +298,101 @@ declare const phoneClickMetadataSchema: z.ZodObject<{
192
298
  }, {
193
299
  path: string;
194
300
  }>;
301
+ section: z.ZodOptional<z.ZodNullable<z.ZodString>>;
195
302
  }, "strict", z.ZodTypeAny, {
196
303
  page: {
197
304
  path: string;
198
305
  };
199
- element: {
200
- text: string | null;
201
- tag: string;
202
- href: string;
203
- };
306
+ phone_number: string;
307
+ section?: string | null | undefined;
204
308
  }, {
205
309
  page: {
206
310
  path: string;
207
311
  };
208
- element: {
209
- text: string | null;
210
- tag: string;
211
- href: string;
212
- };
312
+ phone_number: string;
313
+ section?: string | null | undefined;
213
314
  }>;
214
315
  type PhoneClickMetadata = z.infer<typeof phoneClickMetadataSchema>;
215
316
  declare const phoneClickConfigSchema: z.ZodObject<{}, "strict", z.ZodTypeAny, {}, {}>;
216
317
  type PhoneClickConfig = z.infer<typeof phoneClickConfigSchema>;
217
318
 
319
+ declare const scrollDepthMetadataSchema: z.ZodObject<{
320
+ depth_percent: z.ZodNumber;
321
+ page: z.ZodObject<{
322
+ path: z.ZodString;
323
+ }, "strip", z.ZodTypeAny, {
324
+ path: string;
325
+ }, {
326
+ path: string;
327
+ }>;
328
+ }, "strict", z.ZodTypeAny, {
329
+ page: {
330
+ path: string;
331
+ };
332
+ depth_percent: number;
333
+ }, {
334
+ page: {
335
+ path: string;
336
+ };
337
+ depth_percent: number;
338
+ }>;
339
+ type ScrollDepthMetadata = z.infer<typeof scrollDepthMetadataSchema>;
340
+ declare const scrollDepthConfigSchema: z.ZodObject<{
341
+ thresholds: z.ZodArray<z.ZodNumber, "many">;
342
+ }, "strict", z.ZodTypeAny, {
343
+ thresholds: number[];
344
+ }, {
345
+ thresholds: number[];
346
+ }>;
347
+ type ScrollDepthConfig = z.infer<typeof scrollDepthConfigSchema>;
348
+
349
+ declare const SPECIFIC_PAGE_NAMES: readonly ["contact_page", "about_page", "services_page", "booking_page", "location_page", "pricing_page", "faq_page", "testimonials_page"];
350
+ type SpecificPageName = (typeof SPECIFIC_PAGE_NAMES)[number];
351
+ declare const specificPageVisitMetadataSchema: z.ZodObject<{
352
+ page_name: z.ZodEnum<["contact_page", "about_page", "services_page", "booking_page", "location_page", "pricing_page", "faq_page", "testimonials_page"]>;
353
+ page: z.ZodObject<{
354
+ path: z.ZodString;
355
+ }, "strip", z.ZodTypeAny, {
356
+ path: string;
357
+ }, {
358
+ path: string;
359
+ }>;
360
+ }, "strict", z.ZodTypeAny, {
361
+ page: {
362
+ path: string;
363
+ };
364
+ page_name: "contact_page" | "about_page" | "services_page" | "booking_page" | "location_page" | "pricing_page" | "faq_page" | "testimonials_page";
365
+ }, {
366
+ page: {
367
+ path: string;
368
+ };
369
+ page_name: "contact_page" | "about_page" | "services_page" | "booking_page" | "location_page" | "pricing_page" | "faq_page" | "testimonials_page";
370
+ }>;
371
+ type SpecificPageVisitMetadata = z.infer<typeof specificPageVisitMetadataSchema>;
372
+ declare const specificPageVisitConfigSchema: z.ZodObject<{
373
+ pages: z.ZodArray<z.ZodObject<{
374
+ name: z.ZodEnum<["contact_page", "about_page", "services_page", "booking_page", "location_page", "pricing_page", "faq_page", "testimonials_page"]>;
375
+ pathPattern: z.ZodType<RegExp, z.ZodTypeDef, RegExp>;
376
+ }, "strip", z.ZodTypeAny, {
377
+ name: "contact_page" | "about_page" | "services_page" | "booking_page" | "location_page" | "pricing_page" | "faq_page" | "testimonials_page";
378
+ pathPattern: RegExp;
379
+ }, {
380
+ name: "contact_page" | "about_page" | "services_page" | "booking_page" | "location_page" | "pricing_page" | "faq_page" | "testimonials_page";
381
+ pathPattern: RegExp;
382
+ }>, "many">;
383
+ }, "strict", z.ZodTypeAny, {
384
+ pages: {
385
+ name: "contact_page" | "about_page" | "services_page" | "booking_page" | "location_page" | "pricing_page" | "faq_page" | "testimonials_page";
386
+ pathPattern: RegExp;
387
+ }[];
388
+ }, {
389
+ pages: {
390
+ name: "contact_page" | "about_page" | "services_page" | "booking_page" | "location_page" | "pricing_page" | "faq_page" | "testimonials_page";
391
+ pathPattern: RegExp;
392
+ }[];
393
+ }>;
394
+ type SpecificPageVisitConfig = z.infer<typeof specificPageVisitConfigSchema>;
395
+
218
396
  declare const timeOnSiteMetadataSchema: z.ZodObject<{
219
397
  duration_ms: z.ZodNumber;
220
398
  page: z.ZodObject<{
@@ -333,9 +511,10 @@ declare const EVENT_REGISTRY: {
333
511
  thresholdSeconds: number;
334
512
  }>;
335
513
  };
336
- readonly contact_page_visit: {
514
+ readonly specific_page_visit: {
337
515
  readonly kind: "automatic";
338
516
  readonly metadataSchema: z.ZodObject<{
517
+ page_name: z.ZodEnum<["contact_page", "about_page", "services_page", "booking_page", "location_page", "pricing_page", "faq_page", "testimonials_page"]>;
339
518
  page: z.ZodObject<{
340
519
  path: z.ZodString;
341
520
  }, "strip", z.ZodTypeAny, {
@@ -347,17 +526,139 @@ declare const EVENT_REGISTRY: {
347
526
  page: {
348
527
  path: string;
349
528
  };
529
+ page_name: "contact_page" | "about_page" | "services_page" | "booking_page" | "location_page" | "pricing_page" | "faq_page" | "testimonials_page";
350
530
  }, {
351
531
  page: {
352
532
  path: string;
353
533
  };
534
+ page_name: "contact_page" | "about_page" | "services_page" | "booking_page" | "location_page" | "pricing_page" | "faq_page" | "testimonials_page";
354
535
  }>;
355
536
  readonly configSchema: z.ZodObject<{
356
- pathPattern: z.ZodType<RegExp, z.ZodTypeDef, RegExp>;
537
+ pages: z.ZodArray<z.ZodObject<{
538
+ name: z.ZodEnum<["contact_page", "about_page", "services_page", "booking_page", "location_page", "pricing_page", "faq_page", "testimonials_page"]>;
539
+ pathPattern: z.ZodType<RegExp, z.ZodTypeDef, RegExp>;
540
+ }, "strip", z.ZodTypeAny, {
541
+ name: "contact_page" | "about_page" | "services_page" | "booking_page" | "location_page" | "pricing_page" | "faq_page" | "testimonials_page";
542
+ pathPattern: RegExp;
543
+ }, {
544
+ name: "contact_page" | "about_page" | "services_page" | "booking_page" | "location_page" | "pricing_page" | "faq_page" | "testimonials_page";
545
+ pathPattern: RegExp;
546
+ }>, "many">;
357
547
  }, "strict", z.ZodTypeAny, {
358
- pathPattern: RegExp;
548
+ pages: {
549
+ name: "contact_page" | "about_page" | "services_page" | "booking_page" | "location_page" | "pricing_page" | "faq_page" | "testimonials_page";
550
+ pathPattern: RegExp;
551
+ }[];
359
552
  }, {
360
- pathPattern: RegExp;
553
+ pages: {
554
+ name: "contact_page" | "about_page" | "services_page" | "booking_page" | "location_page" | "pricing_page" | "faq_page" | "testimonials_page";
555
+ pathPattern: RegExp;
556
+ }[];
557
+ }>;
558
+ };
559
+ readonly scroll_depth: {
560
+ readonly kind: "automatic";
561
+ readonly metadataSchema: z.ZodObject<{
562
+ depth_percent: z.ZodNumber;
563
+ page: z.ZodObject<{
564
+ path: z.ZodString;
565
+ }, "strip", z.ZodTypeAny, {
566
+ path: string;
567
+ }, {
568
+ path: string;
569
+ }>;
570
+ }, "strict", z.ZodTypeAny, {
571
+ page: {
572
+ path: string;
573
+ };
574
+ depth_percent: number;
575
+ }, {
576
+ page: {
577
+ path: string;
578
+ };
579
+ depth_percent: number;
580
+ }>;
581
+ readonly configSchema: z.ZodObject<{
582
+ thresholds: z.ZodArray<z.ZodNumber, "many">;
583
+ }, "strict", z.ZodTypeAny, {
584
+ thresholds: number[];
585
+ }, {
586
+ thresholds: number[];
587
+ }>;
588
+ };
589
+ readonly multi_page_session: {
590
+ readonly kind: "automatic";
591
+ readonly metadataSchema: z.ZodObject<{
592
+ page_count: z.ZodNumber;
593
+ page: z.ZodObject<{
594
+ path: z.ZodString;
595
+ }, "strip", z.ZodTypeAny, {
596
+ path: string;
597
+ }, {
598
+ path: string;
599
+ }>;
600
+ }, "strict", z.ZodTypeAny, {
601
+ page: {
602
+ path: string;
603
+ };
604
+ page_count: number;
605
+ }, {
606
+ page: {
607
+ path: string;
608
+ };
609
+ page_count: number;
610
+ }>;
611
+ readonly configSchema: z.ZodObject<{
612
+ pageThreshold: z.ZodNumber;
613
+ }, "strict", z.ZodTypeAny, {
614
+ pageThreshold: number;
615
+ }, {
616
+ pageThreshold: number;
617
+ }>;
618
+ };
619
+ readonly form_start: {
620
+ readonly kind: "automatic";
621
+ readonly metadataSchema: z.ZodObject<{
622
+ form: z.ZodObject<{
623
+ id: z.ZodString;
624
+ action: z.ZodNullable<z.ZodString>;
625
+ }, "strip", z.ZodTypeAny, {
626
+ id: string;
627
+ action: string | null;
628
+ }, {
629
+ id: string;
630
+ action: string | null;
631
+ }>;
632
+ page: z.ZodObject<{
633
+ path: z.ZodString;
634
+ }, "strip", z.ZodTypeAny, {
635
+ path: string;
636
+ }, {
637
+ path: string;
638
+ }>;
639
+ }, "strict", z.ZodTypeAny, {
640
+ form: {
641
+ id: string;
642
+ action: string | null;
643
+ };
644
+ page: {
645
+ path: string;
646
+ };
647
+ }, {
648
+ form: {
649
+ id: string;
650
+ action: string | null;
651
+ };
652
+ page: {
653
+ path: string;
654
+ };
655
+ }>;
656
+ readonly configSchema: z.ZodObject<{
657
+ selector: z.ZodOptional<z.ZodString>;
658
+ }, "strict", z.ZodTypeAny, {
659
+ selector?: string | undefined;
660
+ }, {
661
+ selector?: string | undefined;
361
662
  }>;
362
663
  };
363
664
  readonly form_submit: {
@@ -366,12 +667,40 @@ declare const EVENT_REGISTRY: {
366
667
  form: z.ZodObject<{
367
668
  id: z.ZodString;
368
669
  action: z.ZodNullable<z.ZodString>;
670
+ fields: z.ZodOptional<z.ZodArray<z.ZodObject<{
671
+ name: z.ZodString;
672
+ type: z.ZodString;
673
+ label: z.ZodNullable<z.ZodString>;
674
+ has_value: z.ZodBoolean;
675
+ }, "strip", z.ZodTypeAny, {
676
+ label: string | null;
677
+ type: string;
678
+ name: string;
679
+ has_value: boolean;
680
+ }, {
681
+ label: string | null;
682
+ type: string;
683
+ name: string;
684
+ has_value: boolean;
685
+ }>, "many">>;
369
686
  }, "strip", z.ZodTypeAny, {
370
687
  id: string;
371
688
  action: string | null;
689
+ fields?: {
690
+ label: string | null;
691
+ type: string;
692
+ name: string;
693
+ has_value: boolean;
694
+ }[] | undefined;
372
695
  }, {
373
696
  id: string;
374
697
  action: string | null;
698
+ fields?: {
699
+ label: string | null;
700
+ type: string;
701
+ name: string;
702
+ has_value: boolean;
703
+ }[] | undefined;
375
704
  }>;
376
705
  page: z.ZodObject<{
377
706
  path: z.ZodString;
@@ -384,6 +713,12 @@ declare const EVENT_REGISTRY: {
384
713
  form: {
385
714
  id: string;
386
715
  action: string | null;
716
+ fields?: {
717
+ label: string | null;
718
+ type: string;
719
+ name: string;
720
+ has_value: boolean;
721
+ }[] | undefined;
387
722
  };
388
723
  page: {
389
724
  path: string;
@@ -392,6 +727,12 @@ declare const EVENT_REGISTRY: {
392
727
  form: {
393
728
  id: string;
394
729
  action: string | null;
730
+ fields?: {
731
+ label: string | null;
732
+ type: string;
733
+ name: string;
734
+ has_value: boolean;
735
+ }[] | undefined;
395
736
  };
396
737
  page: {
397
738
  path: string;
@@ -402,19 +743,34 @@ declare const EVENT_REGISTRY: {
402
743
  readonly phone_click: {
403
744
  readonly kind: "manual";
404
745
  readonly metadataSchema: z.ZodObject<{
405
- element: z.ZodObject<{
406
- tag: z.ZodString;
407
- text: z.ZodNullable<z.ZodString>;
408
- href: z.ZodString;
746
+ phone_number: z.ZodString;
747
+ page: z.ZodObject<{
748
+ path: z.ZodString;
409
749
  }, "strip", z.ZodTypeAny, {
410
- text: string | null;
411
- tag: string;
412
- href: string;
750
+ path: string;
413
751
  }, {
414
- text: string | null;
415
- tag: string;
416
- href: string;
752
+ path: string;
417
753
  }>;
754
+ section: z.ZodOptional<z.ZodNullable<z.ZodString>>;
755
+ }, "strict", z.ZodTypeAny, {
756
+ page: {
757
+ path: string;
758
+ };
759
+ phone_number: string;
760
+ section?: string | null | undefined;
761
+ }, {
762
+ page: {
763
+ path: string;
764
+ };
765
+ phone_number: string;
766
+ section?: string | null | undefined;
767
+ }>;
768
+ readonly configSchema: z.ZodObject<{}, "strict", z.ZodTypeAny, {}, {}>;
769
+ };
770
+ readonly cta_click: {
771
+ readonly kind: "manual";
772
+ readonly metadataSchema: z.ZodObject<{
773
+ cta_name: z.ZodString;
418
774
  page: z.ZodObject<{
419
775
  path: z.ZodString;
420
776
  }, "strip", z.ZodTypeAny, {
@@ -422,24 +778,22 @@ declare const EVENT_REGISTRY: {
422
778
  }, {
423
779
  path: string;
424
780
  }>;
781
+ section: z.ZodOptional<z.ZodNullable<z.ZodString>>;
782
+ destination_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
425
783
  }, "strict", z.ZodTypeAny, {
426
784
  page: {
427
785
  path: string;
428
786
  };
429
- element: {
430
- text: string | null;
431
- tag: string;
432
- href: string;
433
- };
787
+ cta_name: string;
788
+ section?: string | null | undefined;
789
+ destination_url?: string | null | undefined;
434
790
  }, {
435
791
  page: {
436
792
  path: string;
437
793
  };
438
- element: {
439
- text: string | null;
440
- tag: string;
441
- href: string;
442
- };
794
+ cta_name: string;
795
+ section?: string | null | undefined;
796
+ destination_url?: string | null | undefined;
443
797
  }>;
444
798
  readonly configSchema: z.ZodObject<{}, "strict", z.ZodTypeAny, {}, {}>;
445
799
  };
@@ -454,16 +808,24 @@ type ManualEventName = {
454
808
  type MetadataByName = {
455
809
  page_view: PageViewMetadata;
456
810
  time_on_site: TimeOnSiteMetadata;
457
- contact_page_visit: ContactPageVisitMetadata;
811
+ specific_page_visit: SpecificPageVisitMetadata;
812
+ scroll_depth: ScrollDepthMetadata;
813
+ multi_page_session: MultiPageSessionMetadata;
814
+ form_start: FormStartMetadata;
458
815
  form_submit: FormSubmitMetadata;
459
816
  phone_click: PhoneClickMetadata;
817
+ cta_click: CtaClickMetadata;
460
818
  };
461
819
  type ConfigByName = {
462
820
  page_view: PageViewConfig;
463
821
  time_on_site: TimeOnSiteConfig;
464
- contact_page_visit: ContactPageVisitConfig;
822
+ specific_page_visit: SpecificPageVisitConfig;
823
+ scroll_depth: ScrollDepthConfig;
824
+ multi_page_session: MultiPageSessionConfig;
825
+ form_start: FormStartConfig;
465
826
  form_submit: FormSubmitConfig;
466
827
  phone_click: PhoneClickConfig;
828
+ cta_click: CtaClickConfig;
467
829
  };
468
830
  type EventMetadata<K extends EventName> = MetadataByName[K];
469
831
  type EventConfig<K extends EventName> = ConfigByName[K];
@@ -472,11 +834,15 @@ type TriggerRegistryConfig = {
472
834
  page_view: EventConfig<'page_view'>;
473
835
  } & Partial<{
474
836
  time_on_site: EventConfig<'time_on_site'>;
475
- contact_page_visit: EventConfig<'contact_page_visit'>;
837
+ specific_page_visit: EventConfig<'specific_page_visit'>;
838
+ scroll_depth: EventConfig<'scroll_depth'>;
839
+ multi_page_session: EventConfig<'multi_page_session'>;
840
+ form_start: EventConfig<'form_start'>;
476
841
  }>;
477
842
  manual?: Partial<{
478
843
  form_submit: EventConfig<'form_submit'>;
479
844
  phone_click: EventConfig<'phone_click'>;
845
+ cta_click: EventConfig<'cta_click'>;
480
846
  }>;
481
847
  };
482
848
  type RegisteredManualEvents<TRegistry extends TriggerRegistryConfig> = Extract<keyof NonNullable<TRegistry['manual']>, ManualEventName>;
@@ -538,4 +904,4 @@ interface CreateTrackingResult<TRegistry extends TriggerRegistryConfig> {
538
904
  */
539
905
  declare function createTracking<TRegistry extends TriggerRegistryConfig>(options: CreateTrackingOptions<TRegistry>): CreateTrackingResult<TRegistry>;
540
906
 
541
- export { type AutomaticEventName, ConsentBanner, ConsentState, type ContactPageVisitConfig, type ContactPageVisitMetadata, type CreateTrackingOptions, type CreateTrackingResult, type EventConfig, type EventMetadata, type EventName, type FormSubmitConfig, type FormSubmitMetadata, GoogleAdsTracking, type GoogleAdsTrackingProps, type ManualEventName, type PageViewConfig, type PageViewMetadata, type PhoneClickConfig, type PhoneClickMetadata, type RegisteredAutomaticEvents, type RegisteredManualEvents, TRACKING_PARAM_KEYS, type TimeOnSiteConfig, type TimeOnSiteMetadata, type TrackingClient, TrackingClientContext, TrackingEventCreatePayload, TrackingInstallSurface, TrackingParams, type TrackingProviderProps, TrackingSessionUpsertPayload, type TriggerRegistryConfig, type TypedTrackEventOptions, type TypedTrackingClient, captureTrackingParamsFromLocation, createTracking, createTrackingClientContext, createTrackingEventCreatePayload, createTrackingSessionUpsertPayload, getConsentState, setConsentState, useConsentState, useGclid, useTrackingParams };
907
+ export { type AutomaticEventName, ConsentBanner, ConsentState, type CreateTrackingOptions, type CreateTrackingResult, type CtaClickConfig, type CtaClickMetadata, type EventConfig, type EventMetadata, type EventName, type FormStartConfig, type FormStartMetadata, type FormSubmitConfig, type FormSubmitMetadata, GoogleAdsTracking, type GoogleAdsTrackingProps, type ManualEventName, type MultiPageSessionConfig, type MultiPageSessionMetadata, type PageViewConfig, type PageViewMetadata, type PhoneClickConfig, type PhoneClickMetadata, type RegisteredAutomaticEvents, type RegisteredManualEvents, type ScrollDepthConfig, type ScrollDepthMetadata, type SpecificPageName, type SpecificPageVisitConfig, type SpecificPageVisitMetadata, TRACKING_PARAM_KEYS, type TimeOnSiteConfig, type TimeOnSiteMetadata, type TrackingClient, TrackingClientContext, TrackingEventCreatePayload, TrackingInstallSurface, TrackingParams, type TrackingProviderProps, TrackingSessionUpsertPayload, type TriggerRegistryConfig, type TypedTrackEventOptions, type TypedTrackingClient, captureTrackingParamsFromLocation, createTracking, createTrackingClientContext, createTrackingEventCreatePayload, createTrackingSessionUpsertPayload, getConsentState, setConsentState, useConsentState, useGclid, useTrackingParams };