@bigz-app/booking-widget 1.3.1 → 1.3.2
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/booking-widget.js +117 -75
- package/dist/booking-widget.js.map +1 -1
- package/dist/components/UniversalBookingWidget.d.ts +0 -7
- package/dist/components/UniversalBookingWidget.d.ts.map +1 -1
- package/dist/components/booking/BookingSuccessModal.d.ts +3 -1
- package/dist/components/booking/BookingSuccessModal.d.ts.map +1 -1
- package/dist/index.cjs +117 -75
- package/dist/index.cjs.map +1 -1
- package/dist/index.esm.js +117 -75
- package/dist/index.esm.js.map +1 -1
- package/dist/utils/google-ads-tracking.d.ts +9 -19
- package/dist/utils/google-ads-tracking.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1,33 +1,23 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Google Ads
|
|
2
|
+
* Google Ads Tracking Utility
|
|
3
3
|
*
|
|
4
|
-
*
|
|
4
|
+
* Handles pageview tracking (widget load) and conversion tracking (successful booking).
|
|
5
|
+
* Supports both direct gtag.js and GTM dataLayer setups.
|
|
5
6
|
*/
|
|
6
7
|
export interface GoogleAdsConfig {
|
|
7
|
-
/**
|
|
8
|
-
* Google Ads Tag ID (e.g., 'AW-XXXXXXX')
|
|
9
|
-
*/
|
|
10
8
|
tagId: string;
|
|
11
|
-
/**
|
|
12
|
-
* Google Ads Conversion ID/Label (e.g., 'booking_conversion')
|
|
13
|
-
*/
|
|
14
9
|
conversionId: string;
|
|
15
|
-
/**
|
|
16
|
-
* Optional conversion value for the booking
|
|
17
|
-
*/
|
|
18
10
|
conversionValue?: number;
|
|
19
|
-
/**
|
|
20
|
-
* Optional conversion currency (defaults to 'EUR')
|
|
21
|
-
*/
|
|
22
11
|
conversionCurrency?: string;
|
|
23
|
-
/**
|
|
24
|
-
* Optional transaction ID for deduplication
|
|
25
|
-
*/
|
|
26
12
|
transactionId?: string;
|
|
27
13
|
}
|
|
28
14
|
/**
|
|
29
|
-
*
|
|
30
|
-
|
|
15
|
+
* Track widget pageview (fired once on widget mount).
|
|
16
|
+
*/
|
|
17
|
+
export declare function handleGoogleAdsPageview(tagId: string, consent: boolean): void;
|
|
18
|
+
/**
|
|
19
|
+
* Handle Google Ads conversion tracking.
|
|
20
|
+
* Waits 1500ms for the success page to settle, then fires.
|
|
31
21
|
*/
|
|
32
22
|
export declare function handleGoogleAdsConversion(config: GoogleAdsConfig): void;
|
|
33
23
|
//# sourceMappingURL=google-ads-tracking.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"google-ads-tracking.d.ts","sourceRoot":"","sources":["../../src/utils/google-ads-tracking.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"google-ads-tracking.d.ts","sourceRoot":"","sources":["../../src/utils/google-ads-tracking.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,MAAM,WAAW,eAAe;IAC/B,KAAK,EAAE,MAAM,CAAC;IACd,YAAY,EAAE,MAAM,CAAC;IACrB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,aAAa,CAAC,EAAE,MAAM,CAAC;CACvB;AAqGD;;GAEG;AACH,wBAAgB,uBAAuB,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,IAAI,CAyB7E;AAED;;;GAGG;AACH,wBAAgB,yBAAyB,CAAC,MAAM,EAAE,eAAe,GAAG,IAAI,CAsBvE"}
|