@shware/analytics 8.13.0 → 8.14.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/attribution/classify.d.cts +6 -7
- package/dist/attribution/classify.d.cts.map +1 -1
- package/dist/attribution/classify.d.mts +6 -7
- package/dist/attribution/classify.d.mts.map +1 -1
- package/dist/attribution/vocabulary.d.cts +24 -25
- package/dist/attribution/vocabulary.d.cts.map +1 -1
- package/dist/attribution/vocabulary.d.mts +24 -25
- package/dist/attribution/vocabulary.d.mts.map +1 -1
- package/dist/click-id/index.d.cts +18 -19
- package/dist/click-id/index.d.cts.map +1 -1
- package/dist/click-id/index.d.mts +18 -19
- package/dist/click-id/index.d.mts.map +1 -1
- package/dist/constants/storage.d.cts +1 -2
- package/dist/constants/storage.d.cts.map +1 -1
- package/dist/constants/storage.d.mts +1 -2
- package/dist/constants/storage.d.mts.map +1 -1
- package/dist/feedback/index.d.cts +1 -2
- package/dist/feedback/index.d.cts.map +1 -1
- package/dist/feedback/index.d.mts +1 -2
- package/dist/feedback/index.d.mts.map +1 -1
- package/dist/hooks/use-app-analytics.d.cts +1 -2
- package/dist/hooks/use-app-analytics.d.cts.map +1 -1
- package/dist/hooks/use-app-analytics.d.mts +1 -2
- package/dist/hooks/use-app-analytics.d.mts.map +1 -1
- package/dist/hooks/use-outbound-click-analytics.d.cts +1 -2
- package/dist/hooks/use-outbound-click-analytics.d.cts.map +1 -1
- package/dist/hooks/use-outbound-click-analytics.d.mts +1 -2
- package/dist/hooks/use-outbound-click-analytics.d.mts.map +1 -1
- package/dist/hooks/use-previous.d.cts +1 -2
- package/dist/hooks/use-previous.d.cts.map +1 -1
- package/dist/hooks/use-previous.d.mts +1 -2
- package/dist/hooks/use-previous.d.mts.map +1 -1
- package/dist/hooks/use-report-web-vitals.d.cts +1 -2
- package/dist/hooks/use-report-web-vitals.d.cts.map +1 -1
- package/dist/hooks/use-report-web-vitals.d.mts +1 -2
- package/dist/hooks/use-report-web-vitals.d.mts.map +1 -1
- package/dist/hooks/use-track-impression.d.cts +1 -2
- package/dist/hooks/use-track-impression.d.cts.map +1 -1
- package/dist/hooks/use-track-impression.d.mts +1 -2
- package/dist/hooks/use-track-impression.d.mts.map +1 -1
- package/dist/hooks/use-uet-id-sync.d.cts +1 -2
- package/dist/hooks/use-uet-id-sync.d.cts.map +1 -1
- package/dist/hooks/use-uet-id-sync.d.mts +1 -2
- package/dist/hooks/use-uet-id-sync.d.mts.map +1 -1
- package/dist/hooks/use-web-analytics.d.cts +1 -2
- package/dist/hooks/use-web-analytics.d.cts.map +1 -1
- package/dist/hooks/use-web-analytics.d.mts +1 -2
- package/dist/hooks/use-web-analytics.d.mts.map +1 -1
- package/dist/link/index.d.cts +3 -4
- package/dist/link/index.d.cts.map +1 -1
- package/dist/link/index.d.mts +3 -4
- package/dist/link/index.d.mts.map +1 -1
- package/dist/native/fbsdk.d.cts +1 -2
- package/dist/native/fbsdk.d.cts.map +1 -1
- package/dist/native/fbsdk.d.mts +1 -2
- package/dist/native/fbsdk.d.mts.map +1 -1
- package/dist/native/fingerprint.d.cts +4 -5
- package/dist/native/fingerprint.d.cts.map +1 -1
- package/dist/native/fingerprint.d.mts +4 -5
- package/dist/native/fingerprint.d.mts.map +1 -1
- package/dist/native/firebase.d.cts +1 -2
- package/dist/native/firebase.d.cts.map +1 -1
- package/dist/native/firebase.d.mts +1 -2
- package/dist/native/firebase.d.mts.map +1 -1
- package/dist/native/posthog.d.cts +1 -2
- package/dist/native/posthog.d.cts.map +1 -1
- package/dist/native/posthog.d.mts +1 -2
- package/dist/native/posthog.d.mts.map +1 -1
- package/dist/native/setup.d.cts +4 -5
- package/dist/native/setup.d.cts.map +1 -1
- package/dist/native/setup.d.mts +4 -5
- package/dist/native/setup.d.mts.map +1 -1
- package/dist/next/index.cjs +14 -14
- package/dist/next/index.cjs.map +1 -1
- package/dist/next/index.d.cts +1 -2
- package/dist/next/index.d.cts.map +1 -1
- package/dist/next/index.d.mts +1 -2
- package/dist/next/index.d.mts.map +1 -1
- package/dist/next/index.mjs +3 -3
- package/dist/react-router/index.d.cts +1 -2
- package/dist/react-router/index.d.cts.map +1 -1
- package/dist/react-router/index.d.mts +1 -2
- package/dist/react-router/index.d.mts.map +1 -1
- package/dist/schema/index.cjs +32 -2
- package/dist/schema/index.cjs.map +1 -1
- package/dist/schema/index.d.cts +155 -18
- package/dist/schema/index.d.cts.map +1 -1
- package/dist/schema/index.d.mts +155 -18
- package/dist/schema/index.d.mts.map +1 -1
- package/dist/schema/index.mjs +32 -2
- package/dist/schema/index.mjs.map +1 -1
- package/dist/server/action-source.d.cts +3 -4
- package/dist/server/action-source.d.cts.map +1 -1
- package/dist/server/action-source.d.mts +3 -4
- package/dist/server/action-source.d.mts.map +1 -1
- package/dist/server/google-data-manager.d.cts +9 -10
- package/dist/server/google-data-manager.d.cts.map +1 -1
- package/dist/server/google-data-manager.d.mts +9 -10
- package/dist/server/google-data-manager.d.mts.map +1 -1
- package/dist/server/linkedin-conversions-api.d.cts +4 -5
- package/dist/server/linkedin-conversions-api.d.cts.map +1 -1
- package/dist/server/linkedin-conversions-api.d.mts +4 -5
- package/dist/server/linkedin-conversions-api.d.mts.map +1 -1
- package/dist/server/meta-capi.d.cts +5 -6
- package/dist/server/meta-capi.d.cts.map +1 -1
- package/dist/server/meta-capi.d.mts +5 -6
- package/dist/server/meta-capi.d.mts.map +1 -1
- package/dist/server/meta-conversions-api.d.cts +4 -5
- package/dist/server/meta-conversions-api.d.cts.map +1 -1
- package/dist/server/meta-conversions-api.d.mts +4 -5
- package/dist/server/meta-conversions-api.d.mts.map +1 -1
- package/dist/server/microsoft-conversions-api.d.cts +11 -12
- package/dist/server/microsoft-conversions-api.d.cts.map +1 -1
- package/dist/server/microsoft-conversions-api.d.mts +11 -12
- package/dist/server/microsoft-conversions-api.d.mts.map +1 -1
- package/dist/server/openai-conversions-api.d.cts +5 -6
- package/dist/server/openai-conversions-api.d.cts.map +1 -1
- package/dist/server/openai-conversions-api.d.mts +5 -6
- package/dist/server/openai-conversions-api.d.mts.map +1 -1
- package/dist/server/page-location.d.cts +1 -2
- package/dist/server/page-location.d.cts.map +1 -1
- package/dist/server/page-location.d.mts +1 -2
- package/dist/server/page-location.d.mts.map +1 -1
- package/dist/server/reddit-conversions-api.d.cts +4 -5
- package/dist/server/reddit-conversions-api.d.cts.map +1 -1
- package/dist/server/reddit-conversions-api.d.mts +4 -5
- package/dist/server/reddit-conversions-api.d.mts.map +1 -1
- package/dist/setup/index.d.cts +5 -6
- package/dist/setup/index.d.cts.map +1 -1
- package/dist/setup/index.d.mts +5 -6
- package/dist/setup/index.d.mts.map +1 -1
- package/dist/setup/session.d.cts +2 -3
- package/dist/setup/session.d.cts.map +1 -1
- package/dist/setup/session.d.mts +2 -3
- package/dist/setup/session.d.mts.map +1 -1
- package/dist/tanstack/analytics.d.cts +1 -2
- package/dist/tanstack/analytics.d.cts.map +1 -1
- package/dist/tanstack/analytics.d.mts +1 -2
- package/dist/tanstack/analytics.d.mts.map +1 -1
- package/dist/tanstack/middleware.d.cts +3 -4
- package/dist/tanstack/middleware.d.cts.map +1 -1
- package/dist/tanstack/middleware.d.mts +3 -4
- package/dist/tanstack/middleware.d.mts.map +1 -1
- package/dist/test/setup.d.cts +3 -4
- package/dist/test/setup.d.cts.map +1 -1
- package/dist/test/setup.d.mts +3 -4
- package/dist/test/setup.d.mts.map +1 -1
- package/dist/third-parties/google-analytics.d.cts +2 -3
- package/dist/third-parties/google-analytics.d.cts.map +1 -1
- package/dist/third-parties/google-analytics.d.mts +2 -3
- package/dist/third-parties/google-analytics.d.mts.map +1 -1
- package/dist/third-parties/ignored-events.d.cts +1 -2
- package/dist/third-parties/ignored-events.d.cts.map +1 -1
- package/dist/third-parties/ignored-events.d.mts +1 -2
- package/dist/third-parties/ignored-events.d.mts.map +1 -1
- package/dist/third-parties/linkedin-insight-tag.d.cts +3 -4
- package/dist/third-parties/linkedin-insight-tag.d.cts.map +1 -1
- package/dist/third-parties/linkedin-insight-tag.d.mts +3 -4
- package/dist/third-parties/linkedin-insight-tag.d.mts.map +1 -1
- package/dist/third-parties/meta-pixel.d.cts +2 -3
- package/dist/third-parties/meta-pixel.d.cts.map +1 -1
- package/dist/third-parties/meta-pixel.d.mts +2 -3
- package/dist/third-parties/meta-pixel.d.mts.map +1 -1
- package/dist/third-parties/microsoft-uet.d.cts +6 -7
- package/dist/third-parties/microsoft-uet.d.cts.map +1 -1
- package/dist/third-parties/microsoft-uet.d.mts +6 -7
- package/dist/third-parties/microsoft-uet.d.mts.map +1 -1
- package/dist/third-parties/openai-pixel.d.cts +2 -3
- package/dist/third-parties/openai-pixel.d.cts.map +1 -1
- package/dist/third-parties/openai-pixel.d.mts +2 -3
- package/dist/third-parties/openai-pixel.d.mts.map +1 -1
- package/dist/third-parties/posthog.d.cts +2 -3
- package/dist/third-parties/posthog.d.cts.map +1 -1
- package/dist/third-parties/posthog.d.mts +2 -3
- package/dist/third-parties/posthog.d.mts.map +1 -1
- package/dist/third-parties/reddit-pixel.d.cts +2 -3
- package/dist/third-parties/reddit-pixel.d.cts.map +1 -1
- package/dist/third-parties/reddit-pixel.d.mts +2 -3
- package/dist/third-parties/reddit-pixel.d.mts.map +1 -1
- package/dist/track/fbq.d.cts +10 -11
- package/dist/track/fbq.d.cts.map +1 -1
- package/dist/track/fbq.d.mts +10 -11
- package/dist/track/fbq.d.mts.map +1 -1
- package/dist/track/gtag.d.cts +26 -27
- package/dist/track/gtag.d.cts.map +1 -1
- package/dist/track/gtag.d.mts +26 -27
- package/dist/track/gtag.d.mts.map +1 -1
- package/dist/track/index.d.cts +4 -5
- package/dist/track/index.d.cts.map +1 -1
- package/dist/track/index.d.mts +4 -5
- package/dist/track/index.d.mts.map +1 -1
- package/dist/track/lintrk.d.cts +1 -2
- package/dist/track/lintrk.d.cts.map +1 -1
- package/dist/track/lintrk.d.mts +1 -2
- package/dist/track/lintrk.d.mts.map +1 -1
- package/dist/track/oaiq.d.cts +17 -18
- package/dist/track/oaiq.d.cts.map +1 -1
- package/dist/track/oaiq.d.mts +17 -18
- package/dist/track/oaiq.d.mts.map +1 -1
- package/dist/track/rdt.d.cts +10 -11
- package/dist/track/rdt.d.cts.map +1 -1
- package/dist/track/rdt.d.mts +10 -11
- package/dist/track/rdt.d.mts.map +1 -1
- package/dist/track/types.d.cts +20 -21
- package/dist/track/types.d.cts.map +1 -1
- package/dist/track/types.d.mts +20 -21
- package/dist/track/types.d.mts.map +1 -1
- package/dist/track/uetq.d.cts +8 -9
- package/dist/track/uetq.d.cts.map +1 -1
- package/dist/track/uetq.d.mts +8 -9
- package/dist/track/uetq.d.mts.map +1 -1
- package/dist/utils/field.d.cts +1 -2
- package/dist/utils/field.d.cts.map +1 -1
- package/dist/utils/field.d.mts +1 -2
- package/dist/utils/field.d.mts.map +1 -1
- package/dist/utils/sha256.d.cts +1 -2
- package/dist/utils/sha256.d.cts.map +1 -1
- package/dist/utils/sha256.d.mts +1 -2
- package/dist/utils/sha256.d.mts.map +1 -1
- package/dist/utils/stripe.d.cts +2 -3
- package/dist/utils/stripe.d.cts.map +1 -1
- package/dist/utils/stripe.d.mts +2 -3
- package/dist/utils/stripe.d.mts.map +1 -1
- package/dist/visitor/index.d.cts +2 -3
- package/dist/visitor/index.d.cts.map +1 -1
- package/dist/visitor/index.d.mts +2 -3
- package/dist/visitor/index.d.mts.map +1 -1
- package/dist/visitor/types.d.cts +4 -5
- package/dist/visitor/types.d.cts.map +1 -1
- package/dist/visitor/types.d.mts +4 -5
- package/dist/visitor/types.d.mts.map +1 -1
- package/dist/web/index.d.cts +3 -4
- package/dist/web/index.d.cts.map +1 -1
- package/dist/web/index.d.mts +3 -4
- package/dist/web/index.d.mts.map +1 -1
- package/dist/web/page-key.d.cts +1 -2
- package/dist/web/page-key.d.cts.map +1 -1
- package/dist/web/page-key.d.mts +1 -2
- package/dist/web/page-key.d.mts.map +1 -1
- package/package.json +27 -27
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
//#region src/constants/storage.d.ts
|
|
2
|
-
declare const keys: {
|
|
2
|
+
export declare const keys: {
|
|
3
3
|
readonly device_id: 'device_id';
|
|
4
4
|
readonly visitor_id: 'visitor_id';
|
|
5
5
|
readonly first_open_time: 'first_open_time';
|
|
@@ -9,5 +9,4 @@ declare const keys: {
|
|
|
9
9
|
readonly session: 'session';
|
|
10
10
|
};
|
|
11
11
|
//#endregion
|
|
12
|
-
export { keys };
|
|
13
12
|
//# sourceMappingURL=storage.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"storage.d.mts","names":[],"sources":["../../src/constants/storage.ts"],"mappings":";
|
|
1
|
+
{"version":3,"file":"storage.d.mts","names":[],"sources":["../../src/constants/storage.ts"],"mappings":";qBAAa;WACX;WACA;WACA;WACA;;WAEA;WACA"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { CreateFeedbackDTO } from "../schema/index.cjs";
|
|
2
2
|
//#region src/feedback/index.d.ts
|
|
3
|
-
declare function sendFeedback(dto: CreateFeedbackDTO): Promise<void>;
|
|
3
|
+
export declare function sendFeedback(dto: CreateFeedbackDTO): Promise<void>;
|
|
4
4
|
//#endregion
|
|
5
|
-
export { sendFeedback };
|
|
6
5
|
//# sourceMappingURL=index.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.cts","names":[],"sources":["../../src/feedback/index.ts"],"mappings":";;
|
|
1
|
+
{"version":3,"file":"index.d.cts","names":[],"sources":["../../src/feedback/index.ts"],"mappings":";;wBAIsB,aAAa,KAAK,oBAAiB"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { CreateFeedbackDTO } from "../schema/index.mjs";
|
|
2
2
|
//#region src/feedback/index.d.ts
|
|
3
|
-
declare function sendFeedback(dto: CreateFeedbackDTO): Promise<void>;
|
|
3
|
+
export declare function sendFeedback(dto: CreateFeedbackDTO): Promise<void>;
|
|
4
4
|
//#endregion
|
|
5
|
-
export { sendFeedback };
|
|
6
5
|
//# sourceMappingURL=index.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","names":[],"sources":["../../src/feedback/index.ts"],"mappings":";;
|
|
1
|
+
{"version":3,"file":"index.d.mts","names":[],"sources":["../../src/feedback/index.ts"],"mappings":";;wBAIsB,aAAa,KAAK,oBAAiB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-app-analytics.d.cts","names":[],"sources":["../../src/hooks/use-app-analytics.ts"],"mappings":";
|
|
1
|
+
{"version":3,"file":"use-app-analytics.d.cts","names":[],"sources":["../../src/hooks/use-app-analytics.ts"],"mappings":";wBAoBgB,gBAAgB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-app-analytics.d.mts","names":[],"sources":["../../src/hooks/use-app-analytics.ts"],"mappings":";
|
|
1
|
+
{"version":3,"file":"use-app-analytics.d.mts","names":[],"sources":["../../src/hooks/use-app-analytics.ts"],"mappings":";wBAoBgB,gBAAgB"}
|
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
* Tracks outbound link clicks - when a user clicks a link that leads away
|
|
4
4
|
* from the current domain to another website.
|
|
5
5
|
*/
|
|
6
|
-
declare function useOutboundClickAnalytics(): void;
|
|
6
|
+
export declare function useOutboundClickAnalytics(): void;
|
|
7
7
|
//#endregion
|
|
8
|
-
export { useOutboundClickAnalytics };
|
|
9
8
|
//# sourceMappingURL=use-outbound-click-analytics.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-outbound-click-analytics.d.cts","names":[],"sources":["../../src/hooks/use-outbound-click-analytics.ts"],"mappings":";;;;;
|
|
1
|
+
{"version":3,"file":"use-outbound-click-analytics.d.cts","names":[],"sources":["../../src/hooks/use-outbound-click-analytics.ts"],"mappings":";;;;;wBAOgB"}
|
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
* Tracks outbound link clicks - when a user clicks a link that leads away
|
|
4
4
|
* from the current domain to another website.
|
|
5
5
|
*/
|
|
6
|
-
declare function useOutboundClickAnalytics(): void;
|
|
6
|
+
export declare function useOutboundClickAnalytics(): void;
|
|
7
7
|
//#endregion
|
|
8
|
-
export { useOutboundClickAnalytics };
|
|
9
8
|
//# sourceMappingURL=use-outbound-click-analytics.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-outbound-click-analytics.d.mts","names":[],"sources":["../../src/hooks/use-outbound-click-analytics.ts"],"mappings":";;;;;
|
|
1
|
+
{"version":3,"file":"use-outbound-click-analytics.d.mts","names":[],"sources":["../../src/hooks/use-outbound-click-analytics.ts"],"mappings":";;;;;wBAOgB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-previous.d.cts","names":[],"sources":["../../src/hooks/use-previous.ts"],"mappings":";
|
|
1
|
+
{"version":3,"file":"use-previous.d.cts","names":[],"sources":["../../src/hooks/use-previous.ts"],"mappings":";wBAEgB,YAAY,GAAG,OAAO,IAAI"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-previous.d.mts","names":[],"sources":["../../src/hooks/use-previous.ts"],"mappings":";
|
|
1
|
+
{"version":3,"file":"use-previous.d.mts","names":[],"sources":["../../src/hooks/use-previous.ts"],"mappings":";wBAEgB,YAAY,GAAG,OAAO,IAAI"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { Metric } from "web-vitals";
|
|
2
2
|
//#region src/hooks/use-report-web-vitals.d.ts
|
|
3
|
-
declare function useReportWebVitals(reportWebVitalsFn: (metric: Metric) => void): void;
|
|
3
|
+
export declare function useReportWebVitals(reportWebVitalsFn: (metric: Metric) => void): void;
|
|
4
4
|
//#endregion
|
|
5
|
-
export { useReportWebVitals };
|
|
6
5
|
//# sourceMappingURL=use-report-web-vitals.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-report-web-vitals.d.cts","names":[],"sources":["../../src/hooks/use-report-web-vitals.ts"],"mappings":";;
|
|
1
|
+
{"version":3,"file":"use-report-web-vitals.d.cts","names":[],"sources":["../../src/hooks/use-report-web-vitals.ts"],"mappings":";;wBAGgB,mBAAmB,oBAAoB,QAAQ"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { Metric } from "web-vitals";
|
|
2
2
|
//#region src/hooks/use-report-web-vitals.d.ts
|
|
3
|
-
declare function useReportWebVitals(reportWebVitalsFn: (metric: Metric) => void): void;
|
|
3
|
+
export declare function useReportWebVitals(reportWebVitalsFn: (metric: Metric) => void): void;
|
|
4
4
|
//#endregion
|
|
5
|
-
export { useReportWebVitals };
|
|
6
5
|
//# sourceMappingURL=use-report-web-vitals.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-report-web-vitals.d.mts","names":[],"sources":["../../src/hooks/use-report-web-vitals.ts"],"mappings":";;
|
|
1
|
+
{"version":3,"file":"use-report-web-vitals.d.mts","names":[],"sources":["../../src/hooks/use-report-web-vitals.ts"],"mappings":";;wBAGgB,mBAAmB,oBAAoB,QAAQ"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { EventName, TrackName, TrackProperties } from "../track/types.cjs";
|
|
2
2
|
import { RefCallback } from "react";
|
|
3
3
|
//#region src/hooks/use-track-impression.d.ts
|
|
4
|
-
declare function useTrackImpression<T extends EventName = EventName>(name: TrackName<T>, properties?: TrackProperties<T>): RefCallback<Element>;
|
|
4
|
+
export declare function useTrackImpression<T extends EventName = EventName>(name: TrackName<T>, properties?: TrackProperties<T>): RefCallback<Element>;
|
|
5
5
|
//#endregion
|
|
6
|
-
export { useTrackImpression };
|
|
7
6
|
//# sourceMappingURL=use-track-impression.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-track-impression.d.cts","names":[],"sources":["../../src/hooks/use-track-impression.ts"],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"use-track-impression.d.cts","names":[],"sources":["../../src/hooks/use-track-impression.ts"],"mappings":";;;wBAIgB,mBAAmB,UAAU,YAAY,WACvD,MAAM,UAAU,IAChB,aAAa,gBAAgB,KAC5B,YAAY"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { EventName, TrackName, TrackProperties } from "../track/types.mjs";
|
|
2
2
|
import { RefCallback } from "react";
|
|
3
3
|
//#region src/hooks/use-track-impression.d.ts
|
|
4
|
-
declare function useTrackImpression<T extends EventName = EventName>(name: TrackName<T>, properties?: TrackProperties<T>): RefCallback<Element>;
|
|
4
|
+
export declare function useTrackImpression<T extends EventName = EventName>(name: TrackName<T>, properties?: TrackProperties<T>): RefCallback<Element>;
|
|
5
5
|
//#endregion
|
|
6
|
-
export { useTrackImpression };
|
|
7
6
|
//# sourceMappingURL=use-track-impression.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-track-impression.d.mts","names":[],"sources":["../../src/hooks/use-track-impression.ts"],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"use-track-impression.d.mts","names":[],"sources":["../../src/hooks/use-track-impression.ts"],"mappings":";;;wBAIgB,mBAAmB,UAAU,YAAY,WACvD,MAAM,UAAU,IAChB,aAAa,gBAAgB,KAC5B,YAAY"}
|
|
@@ -4,7 +4,6 @@
|
|
|
4
4
|
* id for `setUETUser` and sync the visitor once per mount — the first page view of the visit,
|
|
5
5
|
* which is where Microsoft wants it. No-op without a customer id.
|
|
6
6
|
*/
|
|
7
|
-
declare function useUETIdSync(customerId: string | number | undefined): void;
|
|
7
|
+
export declare function useUETIdSync(customerId: string | number | undefined): void;
|
|
8
8
|
//#endregion
|
|
9
|
-
export { useUETIdSync };
|
|
10
9
|
//# sourceMappingURL=use-uet-id-sync.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-uet-id-sync.d.cts","names":[],"sources":["../../src/hooks/use-uet-id-sync.ts"],"mappings":";;;;;;
|
|
1
|
+
{"version":3,"file":"use-uet-id-sync.d.cts","names":[],"sources":["../../src/hooks/use-uet-id-sync.ts"],"mappings":";;;;;;wBAQgB,aAAa"}
|
|
@@ -4,7 +4,6 @@
|
|
|
4
4
|
* id for `setUETUser` and sync the visitor once per mount — the first page view of the visit,
|
|
5
5
|
* which is where Microsoft wants it. No-op without a customer id.
|
|
6
6
|
*/
|
|
7
|
-
declare function useUETIdSync(customerId: string | number | undefined): void;
|
|
7
|
+
export declare function useUETIdSync(customerId: string | number | undefined): void;
|
|
8
8
|
//#endregion
|
|
9
|
-
export { useUETIdSync };
|
|
10
9
|
//# sourceMappingURL=use-uet-id-sync.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-uet-id-sync.d.mts","names":[],"sources":["../../src/hooks/use-uet-id-sync.ts"],"mappings":";;;;;;
|
|
1
|
+
{"version":3,"file":"use-uet-id-sync.d.mts","names":[],"sources":["../../src/hooks/use-uet-id-sync.ts"],"mappings":";;;;;;wBAQgB,aAAa"}
|
|
@@ -7,7 +7,6 @@
|
|
|
7
7
|
* router's query string (`?a=1`, or `''`), required so no caller forgets that the query is
|
|
8
8
|
* part of what makes a page
|
|
9
9
|
*/
|
|
10
|
-
declare function useWebAnalytics(pathname: string, search: string): void;
|
|
10
|
+
export declare function useWebAnalytics(pathname: string, search: string): void;
|
|
11
11
|
//#endregion
|
|
12
|
-
export { useWebAnalytics };
|
|
13
12
|
//# sourceMappingURL=use-web-analytics.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-web-analytics.d.cts","names":[],"sources":["../../src/hooks/use-web-analytics.ts"],"mappings":";;;;;;;;;
|
|
1
|
+
{"version":3,"file":"use-web-analytics.d.cts","names":[],"sources":["../../src/hooks/use-web-analytics.ts"],"mappings":";;;;;;;;;wBA8DgB,gBAAgB,kBAAkB"}
|
|
@@ -7,7 +7,6 @@
|
|
|
7
7
|
* router's query string (`?a=1`, or `''`), required so no caller forgets that the query is
|
|
8
8
|
* part of what makes a page
|
|
9
9
|
*/
|
|
10
|
-
declare function useWebAnalytics(pathname: string, search: string): void;
|
|
10
|
+
export declare function useWebAnalytics(pathname: string, search: string): void;
|
|
11
11
|
//#endregion
|
|
12
|
-
export { useWebAnalytics };
|
|
13
12
|
//# sourceMappingURL=use-web-analytics.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-web-analytics.d.mts","names":[],"sources":["../../src/hooks/use-web-analytics.ts"],"mappings":";;;;;;;;;
|
|
1
|
+
{"version":3,"file":"use-web-analytics.d.mts","names":[],"sources":["../../src/hooks/use-web-analytics.ts"],"mappings":";;;;;;;;;wBA8DgB,gBAAgB,kBAAkB"}
|
package/dist/link/index.d.cts
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { CreateLinkDTO } from "../schema/index.cjs";
|
|
2
2
|
//#region src/link/index.d.ts
|
|
3
|
-
interface Link extends CreateLinkDTO {
|
|
3
|
+
export interface Link extends CreateLinkDTO {
|
|
4
4
|
id: string;
|
|
5
5
|
created_at: string;
|
|
6
6
|
}
|
|
7
|
-
declare function createLink(dto: CreateLinkDTO): Promise<Link>;
|
|
8
|
-
declare function getLink(id: string): Promise<Link | null>;
|
|
7
|
+
export declare function createLink(dto: CreateLinkDTO): Promise<Link>;
|
|
8
|
+
export declare function getLink(id: string): Promise<Link | null>;
|
|
9
9
|
//#endregion
|
|
10
|
-
export { Link, createLink, getLink };
|
|
11
10
|
//# sourceMappingURL=index.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.cts","names":[],"sources":["../../src/link/index.ts"],"mappings":";;
|
|
1
|
+
{"version":3,"file":"index.d.cts","names":[],"sources":["../../src/link/index.ts"],"mappings":";;iBAIiB,aAAa;EAC5B;EACA;;wBAGoB,WAAW,KAAK,gBAAa,QAAA;wBAc7B,QAAQ,aAAa,QAAQ"}
|
package/dist/link/index.d.mts
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { CreateLinkDTO } from "../schema/index.mjs";
|
|
2
2
|
//#region src/link/index.d.ts
|
|
3
|
-
interface Link extends CreateLinkDTO {
|
|
3
|
+
export interface Link extends CreateLinkDTO {
|
|
4
4
|
id: string;
|
|
5
5
|
created_at: string;
|
|
6
6
|
}
|
|
7
|
-
declare function createLink(dto: CreateLinkDTO): Promise<Link>;
|
|
8
|
-
declare function getLink(id: string): Promise<Link | null>;
|
|
7
|
+
export declare function createLink(dto: CreateLinkDTO): Promise<Link>;
|
|
8
|
+
export declare function getLink(id: string): Promise<Link | null>;
|
|
9
9
|
//#endregion
|
|
10
|
-
export { Link, createLink, getLink };
|
|
11
10
|
//# sourceMappingURL=index.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","names":[],"sources":["../../src/link/index.ts"],"mappings":";;
|
|
1
|
+
{"version":3,"file":"index.d.mts","names":[],"sources":["../../src/link/index.ts"],"mappings":";;iBAIiB,aAAa;EAC5B;EACA;;wBAGoB,WAAW,KAAK,gBAAa,QAAA;wBAc7B,QAAQ,aAAa,QAAQ"}
|
package/dist/native/fbsdk.d.cts
CHANGED
|
@@ -3,7 +3,6 @@ import { EventName, TrackName, TrackProperties } from "../track/types.cjs";
|
|
|
3
3
|
/**
|
|
4
4
|
* ref: https://developers.facebook.com/docs/app-events/guides/maximize-in-app-ad-revenue/
|
|
5
5
|
*/
|
|
6
|
-
declare function sendFBEvent<T extends EventName>(name: TrackName<T>, properties?: TrackProperties<T>): Promise<void>;
|
|
6
|
+
export declare function sendFBEvent<T extends EventName>(name: TrackName<T>, properties?: TrackProperties<T>): Promise<void>;
|
|
7
7
|
//#endregion
|
|
8
|
-
export { sendFBEvent };
|
|
9
8
|
//# sourceMappingURL=fbsdk.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fbsdk.d.cts","names":[],"sources":["../../src/native/fbsdk.ts"],"mappings":";;;;;
|
|
1
|
+
{"version":3,"file":"fbsdk.d.cts","names":[],"sources":["../../src/native/fbsdk.ts"],"mappings":";;;;;wBAOsB,YAAY,UAAU,WAC1C,MAAM,UAAU,IAChB,aAAa,gBAAgB,KAAE"}
|
package/dist/native/fbsdk.d.mts
CHANGED
|
@@ -3,7 +3,6 @@ import { EventName, TrackName, TrackProperties } from "../track/types.mjs";
|
|
|
3
3
|
/**
|
|
4
4
|
* ref: https://developers.facebook.com/docs/app-events/guides/maximize-in-app-ad-revenue/
|
|
5
5
|
*/
|
|
6
|
-
declare function sendFBEvent<T extends EventName>(name: TrackName<T>, properties?: TrackProperties<T>): Promise<void>;
|
|
6
|
+
export declare function sendFBEvent<T extends EventName>(name: TrackName<T>, properties?: TrackProperties<T>): Promise<void>;
|
|
7
7
|
//#endregion
|
|
8
|
-
export { sendFBEvent };
|
|
9
8
|
//# sourceMappingURL=fbsdk.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fbsdk.d.mts","names":[],"sources":["../../src/native/fbsdk.ts"],"mappings":";;;;;
|
|
1
|
+
{"version":3,"file":"fbsdk.d.mts","names":[],"sources":["../../src/native/fbsdk.ts"],"mappings":";;;;;wBAOsB,YAAY,UAAU,WAC1C,MAAM,UAAU,IAChB,aAAa,gBAAgB,KAAE"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
//#region src/native/fingerprint.d.ts
|
|
2
|
-
type DeterministicFingerprint = {
|
|
2
|
+
export type DeterministicFingerprint = {
|
|
3
3
|
click_id: string | null;
|
|
4
4
|
};
|
|
5
|
-
type ProbabilisticFingerprint = {
|
|
5
|
+
export type ProbabilisticFingerprint = {
|
|
6
6
|
os: string | null;
|
|
7
7
|
os_name: string | null;
|
|
8
8
|
os_version: string | null;
|
|
@@ -21,8 +21,7 @@ type ProbabilisticFingerprint = {
|
|
|
21
21
|
pasted_link: string | null;
|
|
22
22
|
timestamp: number;
|
|
23
23
|
};
|
|
24
|
-
declare function getDeterministicFingerprint(): Promise<DeterministicFingerprint>;
|
|
25
|
-
declare function getProbabilisticFingerprint(shouldUseClipboard?: boolean): Promise<ProbabilisticFingerprint>;
|
|
24
|
+
export declare function getDeterministicFingerprint(): Promise<DeterministicFingerprint>;
|
|
25
|
+
export declare function getProbabilisticFingerprint(shouldUseClipboard?: boolean): Promise<ProbabilisticFingerprint>;
|
|
26
26
|
//#endregion
|
|
27
|
-
export { DeterministicFingerprint, ProbabilisticFingerprint, getDeterministicFingerprint, getProbabilisticFingerprint };
|
|
28
27
|
//# sourceMappingURL=fingerprint.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fingerprint.d.cts","names":[],"sources":["../../src/native/fingerprint.ts"],"mappings":";
|
|
1
|
+
{"version":3,"file":"fingerprint.d.cts","names":[],"sources":["../../src/native/fingerprint.ts"],"mappings":";YAkBY;EACV;;YAGU;EACV;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;wBAGoB,+BAA+B,QAAQ;wBAOvC,4BACpB,+BACC,QAAQ"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
//#region src/native/fingerprint.d.ts
|
|
2
|
-
type DeterministicFingerprint = {
|
|
2
|
+
export type DeterministicFingerprint = {
|
|
3
3
|
click_id: string | null;
|
|
4
4
|
};
|
|
5
|
-
type ProbabilisticFingerprint = {
|
|
5
|
+
export type ProbabilisticFingerprint = {
|
|
6
6
|
os: string | null;
|
|
7
7
|
os_name: string | null;
|
|
8
8
|
os_version: string | null;
|
|
@@ -21,8 +21,7 @@ type ProbabilisticFingerprint = {
|
|
|
21
21
|
pasted_link: string | null;
|
|
22
22
|
timestamp: number;
|
|
23
23
|
};
|
|
24
|
-
declare function getDeterministicFingerprint(): Promise<DeterministicFingerprint>;
|
|
25
|
-
declare function getProbabilisticFingerprint(shouldUseClipboard?: boolean): Promise<ProbabilisticFingerprint>;
|
|
24
|
+
export declare function getDeterministicFingerprint(): Promise<DeterministicFingerprint>;
|
|
25
|
+
export declare function getProbabilisticFingerprint(shouldUseClipboard?: boolean): Promise<ProbabilisticFingerprint>;
|
|
26
26
|
//#endregion
|
|
27
|
-
export { DeterministicFingerprint, ProbabilisticFingerprint, getDeterministicFingerprint, getProbabilisticFingerprint };
|
|
28
27
|
//# sourceMappingURL=fingerprint.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fingerprint.d.mts","names":[],"sources":["../../src/native/fingerprint.ts"],"mappings":";
|
|
1
|
+
{"version":3,"file":"fingerprint.d.mts","names":[],"sources":["../../src/native/fingerprint.ts"],"mappings":";YAkBY;EACV;;YAGU;EACV;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;wBAGoB,+BAA+B,QAAQ;wBAOvC,4BACpB,+BACC,QAAQ"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { EventName, TrackName, TrackProperties } from "../track/types.cjs";
|
|
2
2
|
//#region src/native/firebase.d.ts
|
|
3
|
-
declare function sendFirebaseEvent<T extends EventName>(name: TrackName<T>, properties?: TrackProperties<T>): Promise<void>;
|
|
3
|
+
export declare function sendFirebaseEvent<T extends EventName>(name: TrackName<T>, properties?: TrackProperties<T>): Promise<void>;
|
|
4
4
|
//#endregion
|
|
5
|
-
export { sendFirebaseEvent };
|
|
6
5
|
//# sourceMappingURL=firebase.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"firebase.d.cts","names":[],"sources":["../../src/native/firebase.ts"],"mappings":";;
|
|
1
|
+
{"version":3,"file":"firebase.d.cts","names":[],"sources":["../../src/native/firebase.ts"],"mappings":";;wBAMsB,kBAAkB,UAAU,WAChD,MAAM,UAAU,IAChB,aAAa,gBAAgB,KAAE"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { EventName, TrackName, TrackProperties } from "../track/types.mjs";
|
|
2
2
|
//#region src/native/firebase.d.ts
|
|
3
|
-
declare function sendFirebaseEvent<T extends EventName>(name: TrackName<T>, properties?: TrackProperties<T>): Promise<void>;
|
|
3
|
+
export declare function sendFirebaseEvent<T extends EventName>(name: TrackName<T>, properties?: TrackProperties<T>): Promise<void>;
|
|
4
4
|
//#endregion
|
|
5
|
-
export { sendFirebaseEvent };
|
|
6
5
|
//# sourceMappingURL=firebase.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"firebase.d.mts","names":[],"sources":["../../src/native/firebase.ts"],"mappings":";;
|
|
1
|
+
{"version":3,"file":"firebase.d.mts","names":[],"sources":["../../src/native/firebase.ts"],"mappings":";;wBAMsB,kBAAkB,UAAU,WAChD,MAAM,UAAU,IAChB,aAAa,gBAAgB,KAAE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"posthog.d.cts","names":[],"sources":["../../src/native/posthog.ts"],"mappings":";
|
|
1
|
+
{"version":3,"file":"posthog.d.cts","names":[],"sources":["../../src/native/posthog.ts"],"mappings":";wBAAgB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"posthog.d.mts","names":[],"sources":["../../src/native/posthog.ts"],"mappings":";
|
|
1
|
+
{"version":3,"file":"posthog.d.mts","names":[],"sources":["../../src/native/posthog.ts"],"mappings":";wBAAgB"}
|
package/dist/native/setup.d.cts
CHANGED
|
@@ -2,10 +2,9 @@ import { TrackTags } from "../track/types.cjs";
|
|
|
2
2
|
import { Storage } from "../setup/index.cjs";
|
|
3
3
|
import "expo-sqlite/localStorage/install";
|
|
4
4
|
//#region src/native/setup.d.ts
|
|
5
|
-
declare const storage: Storage;
|
|
6
|
-
declare function getDeviceId(): Promise<string>;
|
|
7
|
-
declare function getDeviceType(): string | undefined;
|
|
8
|
-
declare function getTags(): Promise<TrackTags>;
|
|
5
|
+
export declare const storage: Storage;
|
|
6
|
+
export declare function getDeviceId(): Promise<string>;
|
|
7
|
+
export declare function getDeviceType(): string | undefined;
|
|
8
|
+
export declare function getTags(): Promise<TrackTags>;
|
|
9
9
|
//#endregion
|
|
10
|
-
export { getDeviceId, getDeviceType, getTags, storage };
|
|
11
10
|
//# sourceMappingURL=setup.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"setup.d.cts","names":[],"sources":["../../src/native/setup.ts"],"mappings":";;;;
|
|
1
|
+
{"version":3,"file":"setup.d.cts","names":[],"sources":["../../src/native/setup.ts"],"mappings":";;;;qBAsBa,SAAS;wBA2BN,eAAe;wBAkCf;wBA0CM,WAAW,QAAQ"}
|
package/dist/native/setup.d.mts
CHANGED
|
@@ -2,10 +2,9 @@ import { TrackTags } from "../track/types.mjs";
|
|
|
2
2
|
import { Storage } from "../setup/index.mjs";
|
|
3
3
|
import "expo-sqlite/localStorage/install";
|
|
4
4
|
//#region src/native/setup.d.ts
|
|
5
|
-
declare const storage: Storage;
|
|
6
|
-
declare function getDeviceId(): Promise<string>;
|
|
7
|
-
declare function getDeviceType(): string | undefined;
|
|
8
|
-
declare function getTags(): Promise<TrackTags>;
|
|
5
|
+
export declare const storage: Storage;
|
|
6
|
+
export declare function getDeviceId(): Promise<string>;
|
|
7
|
+
export declare function getDeviceType(): string | undefined;
|
|
8
|
+
export declare function getTags(): Promise<TrackTags>;
|
|
9
9
|
//#endregion
|
|
10
|
-
export { getDeviceId, getDeviceType, getTags, storage };
|
|
11
10
|
//# sourceMappingURL=setup.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"setup.d.mts","names":[],"sources":["../../src/native/setup.ts"],"mappings":";;;;
|
|
1
|
+
{"version":3,"file":"setup.d.mts","names":[],"sources":["../../src/native/setup.ts"],"mappings":";;;;qBAsBa,SAAS;wBA2BN,eAAe;wBAkCf;wBA0CM,WAAW,QAAQ"}
|
package/dist/next/index.cjs
CHANGED
|
@@ -6,10 +6,10 @@ const require_hooks_use_outbound_click_analytics = require("../hooks/use-outboun
|
|
|
6
6
|
const require_hooks_use_uet_id_sync = require("../hooks/use-uet-id-sync.cjs");
|
|
7
7
|
const require_hooks_use_web_analytics = require("../hooks/use-web-analytics.cjs");
|
|
8
8
|
let react = require("react");
|
|
9
|
-
let
|
|
10
|
-
let
|
|
11
|
-
|
|
12
|
-
let
|
|
9
|
+
let next_navigation = require("next/navigation");
|
|
10
|
+
let next_script = require("next/script");
|
|
11
|
+
next_script = require_runtime.__toESM(next_script, 1);
|
|
12
|
+
let next_web_vitals = require("next/web-vitals");
|
|
13
13
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
14
14
|
//#region src/next/index.tsx
|
|
15
15
|
/**
|
|
@@ -18,15 +18,15 @@ let react_jsx_runtime = require("react/jsx-runtime");
|
|
|
18
18
|
* fails the build for a page that lets it. The boundary is here so a host does not have to know.
|
|
19
19
|
*/
|
|
20
20
|
function PageViews() {
|
|
21
|
-
const pathname = (0,
|
|
22
|
-
const searchParams = (0,
|
|
21
|
+
const pathname = (0, next_navigation.usePathname)();
|
|
22
|
+
const searchParams = (0, next_navigation.useSearchParams)();
|
|
23
23
|
require_hooks_use_web_analytics.useWebAnalytics(pathname, searchParams.toString());
|
|
24
24
|
return null;
|
|
25
25
|
}
|
|
26
26
|
function Analytics({ gaId, gaSrc, nonce, debugMode, metaPixelId, hotjarId, redditPixelId, linkedInPartnerId, uetTagId, uetCustomerId, facebookAppId, reportWebVitals = true }) {
|
|
27
27
|
require_hooks_use_outbound_click_analytics.useOutboundClickAnalytics();
|
|
28
28
|
require_hooks_use_uet_id_sync.useUETIdSync(uetCustomerId);
|
|
29
|
-
(0,
|
|
29
|
+
(0, next_web_vitals.useReportWebVitals)((metric) => {
|
|
30
30
|
if (!reportWebVitals) return;
|
|
31
31
|
const properties = {
|
|
32
32
|
value: metric.delta,
|
|
@@ -48,11 +48,11 @@ function Analytics({ gaId, gaSrc, nonce, debugMode, metaPixelId, hotjarId, reddi
|
|
|
48
48
|
property: "fb:app_id",
|
|
49
49
|
content: facebookAppId
|
|
50
50
|
}),
|
|
51
|
-
gaId && /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(
|
|
51
|
+
gaId && /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(next_script.default, {
|
|
52
52
|
id: "gtag",
|
|
53
53
|
nonce,
|
|
54
54
|
src: gaSrc ?? `https://www.googletagmanager.com/gtag/js?id=${gaId}`
|
|
55
|
-
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(
|
|
55
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(next_script.default, {
|
|
56
56
|
nonce,
|
|
57
57
|
id: "gtag-init",
|
|
58
58
|
dangerouslySetInnerHTML: { __html: `
|
|
@@ -62,7 +62,7 @@ function Analytics({ gaId, gaSrc, nonce, debugMode, metaPixelId, hotjarId, reddi
|
|
|
62
62
|
gtag('config', '${gaId}'${debugMode ? " ,{ 'debug_mode': true }" : ""});
|
|
63
63
|
` }
|
|
64
64
|
})] }),
|
|
65
|
-
metaPixelId && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(
|
|
65
|
+
metaPixelId && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(next_script.default, {
|
|
66
66
|
id: "meta-pixel",
|
|
67
67
|
strategy: "afterInteractive",
|
|
68
68
|
dangerouslySetInnerHTML: { __html: `
|
|
@@ -85,7 +85,7 @@ function Analytics({ gaId, gaSrc, nonce, debugMode, metaPixelId, hotjarId, reddi
|
|
|
85
85
|
fbq('init', '${metaPixelId}');
|
|
86
86
|
fbq('track', 'PageView');` }
|
|
87
87
|
}),
|
|
88
|
-
redditPixelId && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(
|
|
88
|
+
redditPixelId && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(next_script.default, {
|
|
89
89
|
id: "reddit-pixel",
|
|
90
90
|
strategy: "afterInteractive",
|
|
91
91
|
dangerouslySetInnerHTML: { __html: `
|
|
@@ -105,7 +105,7 @@ function Analytics({ gaId, gaSrc, nonce, debugMode, metaPixelId, hotjarId, reddi
|
|
|
105
105
|
rdt('init', '${redditPixelId}');
|
|
106
106
|
rdt('track', 'PageVisit');` }
|
|
107
107
|
}),
|
|
108
|
-
linkedInPartnerId && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(
|
|
108
|
+
linkedInPartnerId && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(next_script.default, {
|
|
109
109
|
id: "linkedin-insight-tag",
|
|
110
110
|
strategy: "afterInteractive",
|
|
111
111
|
dangerouslySetInnerHTML: { __html: `
|
|
@@ -128,7 +128,7 @@ function Analytics({ gaId, gaSrc, nonce, debugMode, metaPixelId, hotjarId, reddi
|
|
|
128
128
|
})(window.lintrk);
|
|
129
129
|
` }
|
|
130
130
|
}),
|
|
131
|
-
uetTagId && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(
|
|
131
|
+
uetTagId && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(next_script.default, {
|
|
132
132
|
strategy: "afterInteractive",
|
|
133
133
|
id: "uet-tag",
|
|
134
134
|
dangerouslySetInnerHTML: { __html: `
|
|
@@ -150,7 +150,7 @@ function Analytics({ gaId, gaSrc, nonce, debugMode, metaPixelId, hotjarId, reddi
|
|
|
150
150
|
});
|
|
151
151
|
` }
|
|
152
152
|
}),
|
|
153
|
-
hotjarId && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(
|
|
153
|
+
hotjarId && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(next_script.default, {
|
|
154
154
|
id: "hotjar",
|
|
155
155
|
strategy: "afterInteractive",
|
|
156
156
|
dangerouslySetInnerHTML: { __html: `
|