@decocms/blocks 8.17.0 → 8.18.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/v8/analytics/client.d.ts +48 -0
- package/dist/v8/analytics/client.d.ts.map +1 -0
- package/dist/v8/analytics/client.js +71 -0
- package/dist/v8/analytics/client.js.map +1 -0
- package/dist/v8/analytics/runtime/modules/click.d.ts +2 -0
- package/dist/v8/analytics/runtime/modules/click.d.ts.map +1 -0
- package/dist/v8/analytics/runtime/modules/click.js +48 -0
- package/dist/v8/analytics/runtime/modules/click.js.map +1 -0
- package/dist/v8/analytics/runtime/modules/commerce.d.ts +2 -0
- package/dist/v8/analytics/runtime/modules/commerce.d.ts.map +1 -0
- package/dist/v8/analytics/runtime/modules/commerce.js +41 -0
- package/dist/v8/analytics/runtime/modules/commerce.js.map +1 -0
- package/dist/v8/analytics/runtime/modules/consent.d.ts +33 -0
- package/dist/v8/analytics/runtime/modules/consent.d.ts.map +1 -0
- package/dist/v8/analytics/runtime/modules/consent.js +154 -0
- package/dist/v8/analytics/runtime/modules/consent.js.map +1 -0
- package/dist/v8/analytics/runtime/modules/deco.d.ts +2 -0
- package/dist/v8/analytics/runtime/modules/deco.d.ts.map +1 -0
- package/dist/v8/analytics/runtime/modules/deco.js +209 -0
- package/dist/v8/analytics/runtime/modules/deco.js.map +1 -0
- package/dist/v8/analytics/runtime/modules/engagement.d.ts +2 -0
- package/dist/v8/analytics/runtime/modules/engagement.d.ts.map +1 -0
- package/dist/v8/analytics/runtime/modules/engagement.js +128 -0
- package/dist/v8/analytics/runtime/modules/engagement.js.map +1 -0
- package/dist/v8/analytics/runtime/modules/errors.d.ts +2 -0
- package/dist/v8/analytics/runtime/modules/errors.d.ts.map +1 -0
- package/dist/v8/analytics/runtime/modules/errors.js +167 -0
- package/dist/v8/analytics/runtime/modules/errors.js.map +1 -0
- package/dist/v8/analytics/runtime/modules/heatmap.d.ts +2 -0
- package/dist/v8/analytics/runtime/modules/heatmap.d.ts.map +1 -0
- package/dist/v8/analytics/runtime/modules/heatmap.js +316 -0
- package/dist/v8/analytics/runtime/modules/heatmap.js.map +1 -0
- package/dist/v8/analytics/runtime/modules/vitals.d.ts +2 -0
- package/dist/v8/analytics/runtime/modules/vitals.d.ts.map +1 -0
- package/dist/v8/analytics/runtime/modules/vitals.js +119 -0
- package/dist/v8/analytics/runtime/modules/vitals.js.map +1 -0
- package/dist/v8/analytics/runtime/src/guards.d.ts +10 -0
- package/dist/v8/analytics/runtime/src/guards.d.ts.map +1 -0
- package/dist/v8/analytics/runtime/src/guards.js +70 -0
- package/dist/v8/analytics/runtime/src/guards.js.map +1 -0
- package/dist/v8/analytics/runtime/src/index.d.ts +2 -0
- package/dist/v8/analytics/runtime/src/index.d.ts.map +1 -0
- package/dist/v8/analytics/runtime/src/index.js +562 -0
- package/dist/v8/analytics/runtime/src/index.js.map +1 -0
- package/dist/v8/analytics/runtime/src/queue.d.ts +15 -0
- package/dist/v8/analytics/runtime/src/queue.d.ts.map +1 -0
- package/dist/v8/analytics/runtime/src/queue.js +36 -0
- package/dist/v8/analytics/runtime/src/queue.js.map +1 -0
- package/dist/v8/analytics/runtime/src/trim.d.ts +13 -0
- package/dist/v8/analytics/runtime/src/trim.d.ts.map +1 -0
- package/dist/v8/analytics/runtime/src/trim.js +38 -0
- package/dist/v8/analytics/runtime/src/trim.js.map +1 -0
- package/dist/v8/analytics/runtime/view/heat-core.d.ts +69 -0
- package/dist/v8/analytics/runtime/view/heat-core.d.ts.map +1 -0
- package/dist/v8/analytics/runtime/view/heat-core.js +314 -0
- package/dist/v8/analytics/runtime/view/heat-core.js.map +1 -0
- package/dist/v8/analytics/runtime/view/view.d.ts +51 -0
- package/dist/v8/analytics/runtime/view/view.d.ts.map +1 -0
- package/dist/v8/analytics/runtime/view/view.js +525 -0
- package/dist/v8/analytics/runtime/view/view.js.map +1 -0
- package/dist/v8/analytics/shared/anchor.d.ts +71 -0
- package/dist/v8/analytics/shared/anchor.d.ts.map +1 -0
- package/dist/v8/analytics/shared/anchor.js +155 -0
- package/dist/v8/analytics/shared/anchor.js.map +1 -0
- package/dist/v8/analytics/shared/contract.d.ts +294 -0
- package/dist/v8/analytics/shared/contract.d.ts.map +1 -0
- package/dist/v8/analytics/shared/contract.js +652 -0
- package/dist/v8/analytics/shared/contract.js.map +1 -0
- package/package.json +6 -1
- package/src/v8/analytics/client.ts +110 -0
- package/src/v8/analytics/runtime/globals.d.ts +36 -0
- package/src/v8/analytics/runtime/modules/click.ts +54 -0
- package/src/v8/analytics/runtime/modules/commerce.ts +73 -0
- package/src/v8/analytics/runtime/modules/consent.ts +150 -0
- package/src/v8/analytics/runtime/modules/deco.ts +207 -0
- package/src/v8/analytics/runtime/modules/engagement.ts +140 -0
- package/src/v8/analytics/runtime/modules/errors.ts +217 -0
- package/src/v8/analytics/runtime/modules/heatmap.ts +360 -0
- package/src/v8/analytics/runtime/modules/vitals.ts +128 -0
- package/src/v8/analytics/runtime/src/guards.ts +70 -0
- package/src/v8/analytics/runtime/src/index.ts +606 -0
- package/src/v8/analytics/runtime/src/queue.ts +40 -0
- package/src/v8/analytics/runtime/src/trim.ts +39 -0
- package/src/v8/analytics/runtime/view/heat-core.ts +335 -0
- package/src/v8/analytics/runtime/view/view.ts +596 -0
- package/src/v8/analytics/shared/anchor.ts +171 -0
- package/src/v8/analytics/shared/contract.ts +691 -0
- package/src/v8/analytics/tsconfig.json +14 -0
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `@decocms/blocks/analytics/client`: the Deco Analytics client for a v8 site,
|
|
3
|
+
* without the external tag. It runs the same files decocms/analytics bundles
|
|
4
|
+
* into `/_dq/a.js` (core, then each module), so identification, the queue,
|
|
5
|
+
* the transport and the automatic collection have one implementation for both.
|
|
6
|
+
*
|
|
7
|
+
* Importing this module does nothing: no DOM access, safe on the server.
|
|
8
|
+
* `startAnalytics()` does the work in the browser and never rejects, so a
|
|
9
|
+
* failure is "analytics stopped", never "the page broke".
|
|
10
|
+
*/
|
|
11
|
+
/** The optional modules, by the names the collector's site config uses. */
|
|
12
|
+
export type AnalyticsModule = "click" | "commerce" | "consent" | "deco" | "engagement" | "errors" | "heatmap" | "vitals";
|
|
13
|
+
export interface AnalyticsClientOptions {
|
|
14
|
+
/** Modules to load after core, in this order. Default none: core alone collects page views. */
|
|
15
|
+
modules?: AnalyticsModule[];
|
|
16
|
+
/**
|
|
17
|
+
* Where events go. Default `/_dq/e` on the page's own host, which is what makes the
|
|
18
|
+
* collector resolve the site from the `Host` header, the only resolution billing trusts.
|
|
19
|
+
*/
|
|
20
|
+
endpoint?: string;
|
|
21
|
+
/** The site's declared key, for a host the collector can't resolve. Its events are `tag`-grade. */
|
|
22
|
+
key?: string;
|
|
23
|
+
/** Share of sheddable events to keep, 0 to 1. Core events (`$…`) are always kept. */
|
|
24
|
+
sampling?: number;
|
|
25
|
+
/** 1 lets the consent module keep a stable id once the visitor consents. Default 0. */
|
|
26
|
+
tier?: 0 | 1;
|
|
27
|
+
/** The site routes on `location.hash`, so a hash change is a page view. */
|
|
28
|
+
hash?: boolean;
|
|
29
|
+
/** Collect on a development host too (localhost, private ranges). */
|
|
30
|
+
dev?: boolean;
|
|
31
|
+
/** Heatmap module: share of page views it samples, 0 to 1. */
|
|
32
|
+
heatmapRate?: number;
|
|
33
|
+
/** Errors module: cross-origin script hosts that count as the site's own. */
|
|
34
|
+
errorHosts?: string[];
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* Starts collection in the browser: the page view now and on every client-side
|
|
38
|
+
* navigation, plus whatever the modules collect. Call it once, after the page is
|
|
39
|
+
* interactive; nothing visual should wait on it. Resolves to the client's API
|
|
40
|
+
* (`track`, `pageview`, the modules' helpers such as `addToCart`), or null on the
|
|
41
|
+
* server, when collection is off for this visitor (automation, opt-out, a
|
|
42
|
+
* development host) or when anything failed.
|
|
43
|
+
*
|
|
44
|
+
* If the external tag already booted on this page, it is left alone and its API
|
|
45
|
+
* is returned: one client per page, whichever came first.
|
|
46
|
+
*/
|
|
47
|
+
export declare function startAnalytics(options?: AnalyticsClientOptions): Promise<Record<string, unknown> | null>;
|
|
48
|
+
//# sourceMappingURL=client.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../../src/v8/analytics/client.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,2EAA2E;AAC3E,MAAM,MAAM,eAAe,GACvB,OAAO,GACP,UAAU,GACV,SAAS,GACT,MAAM,GACN,YAAY,GACZ,QAAQ,GACR,SAAS,GACT,QAAQ,CAAC;AAEb,MAAM,WAAW,sBAAsB;IACrC,+FAA+F;IAC/F,OAAO,CAAC,EAAE,eAAe,EAAE,CAAC;IAC5B;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,mGAAmG;IACnG,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,qFAAqF;IACrF,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,uFAAuF;IACvF,IAAI,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC;IACb,2EAA2E;IAC3E,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,qEAAqE;IACrE,GAAG,CAAC,EAAE,OAAO,CAAC;IACd,8DAA8D;IAC9D,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,6EAA6E;IAC7E,UAAU,CAAC,EAAE,MAAM,EAAE,CAAC;CACvB;AAcD;;;;;;;;;;GAUG;AACH,wBAAsB,cAAc,CAClC,OAAO,GAAE,sBAA2B,GACnC,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAAC,CAsCzC"}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `@decocms/blocks/analytics/client`: the Deco Analytics client for a v8 site,
|
|
3
|
+
* without the external tag. It runs the same files decocms/analytics bundles
|
|
4
|
+
* into `/_dq/a.js` (core, then each module), so identification, the queue,
|
|
5
|
+
* the transport and the automatic collection have one implementation for both.
|
|
6
|
+
*
|
|
7
|
+
* Importing this module does nothing: no DOM access, safe on the server.
|
|
8
|
+
* `startAnalytics()` does the work in the browser and never rejects, so a
|
|
9
|
+
* failure is "analytics stopped", never "the page broke".
|
|
10
|
+
*/
|
|
11
|
+
/** One loader per file, so a bundler splits each module into its own chunk. */
|
|
12
|
+
const MODULES = {
|
|
13
|
+
click: () => import("./runtime/modules/click.js"),
|
|
14
|
+
commerce: () => import("./runtime/modules/commerce.js"),
|
|
15
|
+
consent: () => import("./runtime/modules/consent.js"),
|
|
16
|
+
deco: () => import("./runtime/modules/deco.js"),
|
|
17
|
+
engagement: () => import("./runtime/modules/engagement.js"),
|
|
18
|
+
errors: () => import("./runtime/modules/errors.js"),
|
|
19
|
+
heatmap: () => import("./runtime/modules/heatmap.js"),
|
|
20
|
+
vitals: () => import("./runtime/modules/vitals.js"),
|
|
21
|
+
};
|
|
22
|
+
/**
|
|
23
|
+
* Starts collection in the browser: the page view now and on every client-side
|
|
24
|
+
* navigation, plus whatever the modules collect. Call it once, after the page is
|
|
25
|
+
* interactive; nothing visual should wait on it. Resolves to the client's API
|
|
26
|
+
* (`track`, `pageview`, the modules' helpers such as `addToCart`), or null on the
|
|
27
|
+
* server, when collection is off for this visitor (automation, opt-out, a
|
|
28
|
+
* development host) or when anything failed.
|
|
29
|
+
*
|
|
30
|
+
* If the external tag already booted on this page, it is left alone and its API
|
|
31
|
+
* is returned: one client per page, whichever came first.
|
|
32
|
+
*/
|
|
33
|
+
export async function startAnalytics(options = {}) {
|
|
34
|
+
if (typeof window === "undefined")
|
|
35
|
+
return null;
|
|
36
|
+
const w = window;
|
|
37
|
+
try {
|
|
38
|
+
if (w.__dqBooted)
|
|
39
|
+
return typeof w.__dq?.track === "function" ? w.__dq : null;
|
|
40
|
+
// The same fields the collector writes ahead of `/_dq/a.js`, and the same precedence: what
|
|
41
|
+
// the page already set on `window.__dq` wins. `q` is held back and replayed below, once
|
|
42
|
+
// every module has registered: core replays its stub in a microtask, and a module in its
|
|
43
|
+
// own chunk arrives later than that, so a helper queued before boot would be dropped.
|
|
44
|
+
const page = (w.__dq ?? {});
|
|
45
|
+
const queued = Array.isArray(page.q) ? [...page.q] : [];
|
|
46
|
+
w.__dq = Object.assign({
|
|
47
|
+
s: "unknown",
|
|
48
|
+
e: options.endpoint ?? "/_dq/e",
|
|
49
|
+
r: options.sampling ?? 1,
|
|
50
|
+
tier: options.tier ?? 0,
|
|
51
|
+
...(options.hash ? { hash: 1 } : {}),
|
|
52
|
+
...(options.dev ? { dev: true } : {}),
|
|
53
|
+
...(options.key ? { k: options.key } : {}),
|
|
54
|
+
...(options.heatmapRate !== undefined ? { hr: options.heatmapRate } : {}),
|
|
55
|
+
...(options.errorHosts?.length ? { er: options.errorHosts } : {}),
|
|
56
|
+
}, page, { q: [] });
|
|
57
|
+
await import("./runtime/src/index.js");
|
|
58
|
+
// Core assigns its API only when it collects; skipped means skipped, modules included.
|
|
59
|
+
if (typeof w.__dq.track !== "function")
|
|
60
|
+
return null;
|
|
61
|
+
for (const name of new Set(options.modules ?? []))
|
|
62
|
+
await MODULES[name]?.();
|
|
63
|
+
for (const r of queued)
|
|
64
|
+
w.__dq.q?.push?.(r);
|
|
65
|
+
return w.__dq;
|
|
66
|
+
}
|
|
67
|
+
catch {
|
|
68
|
+
return null;
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
//# sourceMappingURL=client.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"client.js","sourceRoot":"","sources":["../../../src/v8/analytics/client.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAqCH,+EAA+E;AAC/E,MAAM,OAAO,GAAoD;IAC/D,KAAK,EAAE,GAAG,EAAE,CAAC,MAAM,CAAC,4BAA4B,CAAC;IACjD,QAAQ,EAAE,GAAG,EAAE,CAAC,MAAM,CAAC,+BAA+B,CAAC;IACvD,OA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
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"click.d.ts","sourceRoot":"","sources":["../../../../../src/v8/analytics/runtime/modules/click.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/** A/B testing interaction capture: per-click telemetry for whichever elements a site
|
|
2
|
+
* wants scored against an experiment variant.
|
|
3
|
+
*
|
|
4
|
+
* Not tied to a specific experiment id in the payload -- `enqueue` already merges
|
|
5
|
+
* `cfg.x` (the map `setExperiment` builds) into every event, so `exp` on this row is
|
|
6
|
+
* free. Carrying it again here would duplicate a column this event already gets by
|
|
7
|
+
* riding the same pipe as everything else.
|
|
8
|
+
*
|
|
9
|
+
* `engagement.ts` already tracks outbound/download clicks unconditionally, because
|
|
10
|
+
* those are a fixed, small vocabulary. Clicks in general are not: GA4 sends one event
|
|
11
|
+
* per click with no cap, which is the shape this module exists to avoid repeating.
|
|
12
|
+
*/
|
|
13
|
+
import { LIMITS } from "../../shared/contract.js";
|
|
14
|
+
const CAPTURE_PHASE = {
|
|
15
|
+
1: "capturing",
|
|
16
|
+
2: "at_target",
|
|
17
|
+
3: "bubbling",
|
|
18
|
+
};
|
|
19
|
+
window.__dqRegister?.((enqueue) => {
|
|
20
|
+
// Same reasoning as engagement's outbound cap: an experiment CTA rage-clicked ten
|
|
21
|
+
// times is one fact about that click, not ten rows.
|
|
22
|
+
const MAX_CLICKS = 30;
|
|
23
|
+
let sent = 0;
|
|
24
|
+
addEventListener("click", (event) => {
|
|
25
|
+
if (sent >= MAX_CLICKS)
|
|
26
|
+
return;
|
|
27
|
+
const el = event.target;
|
|
28
|
+
if (!el)
|
|
29
|
+
return;
|
|
30
|
+
sent++;
|
|
31
|
+
const classList = el.classList ? [...el.classList].slice(0, 5).join(" ") : "";
|
|
32
|
+
enqueue("experiment_click", {
|
|
33
|
+
capture_phase: CAPTURE_PHASE[event.eventPhase] ?? "none",
|
|
34
|
+
// Viewport, for reading `page_x`/`page_y` as a fraction of what the visitor could
|
|
35
|
+
// actually see -- document size, not screen size, is a separate question nobody
|
|
36
|
+
// asked here.
|
|
37
|
+
viewport_width: window.innerWidth || document.documentElement.clientWidth || 0,
|
|
38
|
+
viewport_height: window.innerHeight || document.documentElement.clientHeight || 0,
|
|
39
|
+
page_x: Math.round(event.pageX),
|
|
40
|
+
page_y: Math.round(event.pageY),
|
|
41
|
+
element_type: el.tagName?.toLowerCase() ?? "",
|
|
42
|
+
element_id: el.id ?? "",
|
|
43
|
+
element_class: classList.slice(0, LIMITS.valueLen),
|
|
44
|
+
is_trusted: event.isTrusted,
|
|
45
|
+
});
|
|
46
|
+
}, { capture: true, passive: true });
|
|
47
|
+
});
|
|
48
|
+
//# sourceMappingURL=click.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"click.js","sourceRoot":"","sources":["../../../../../src/v8/analytics/runtime/modules/click.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AACH,OAAO,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;AAElD,MAAM,aAAa,GAA2B;IAC5C,CAAC,EAAE,WAAW;IACd,CAAC,EAAE,WAAW;IACd,CAAC,EAAE,UAAU;CACd,CAAC;AAEF,MAAM,CAAC,YAAY,EAAE,CAAC,CAAC,OAAO,EAAE,EAAE;IAChC,kFAAkF;IAClF,oDAAoD;IACpD,MAAM,UAAU,GAAG,EAAE,CAAC;IACtB,IAAI,IAAI,GAAG,CAAC,CAAC;IAEb,gBAAgB,CACd,OAAO,EACP,CAAC,KAAiB,EAAE,EAAE;QACpB,IAAI,IAAI,IAAI,UAAU;YAAE,OAAO;QAC/B,MAAM,EAAE,GAAG,KAAK,CAAC,MAAwB,CAAC;QAC1C,IAAI,CAAC,EAAE;YAAE,OAAO;QAChB,IAAI,EAAE,CAAC;QAEP,MAAM,SAAS,GAAG,EAAE,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,GAAG,EAAE,CAAC,SAAS,CAAC,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;QAE9E,OAAO,CAAC,kBAAkB,EAAE;YAC1B,aAAa,EAAE,aAAa,CAAC,KAAK,CAAC,UAAU,CAAC,IAAI,MAAM;YACxD,kFAAkF;YAClF,gFAAgF;YAChF,cAAc;YACd,cAAc,EAAE,MAAM,CAAC,UAAU,IAAI,QAAQ,CAAC,eAAe,CAAC,WAAW,IAAI,CAAC;YAC9E,eAAe,EAAE,MAAM,CAAC,WAAW,IAAI,QAAQ,CAAC,eAAe,CAAC,YAAY,IAAI,CAAC;YACjF,MAAM,EAAE,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,KAAK,CAAC;YAC/B,MAAM,EAAE,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,KAAK,CAAC;YAC/B,YAAY,EAAE,EAAE,CAAC,OAAO,EAAE,WAAW,EAAE,IAAI,EAAE;YAC7C,UAAU,EAAE,EAAE,CAAC,EAAE,IAAI,EAAE;YACvB,aAAa,EAAE,SAAS,CAAC,KAAK,CAAC,CAAC,EAAE,MAAM,CAAC,QAAQ,CAAC;YAClD,UAAU,EAAE,KAAK,CAAC,SAAS;SAC5B,CAAC,CAAC;IACL,CAAC,EACD,EAAE,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,CACjC,CAAC;AACJ,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"commerce.d.ts","sourceRoot":"","sources":["../../../../../src/v8/analytics/runtime/modules/commerce.ts"],"names":[],"mappings":"AAwEA,OAAO,EAAE,CAAC"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
window.__dqRegister?.((enqueue, api) => {
|
|
2
|
+
const of = (name) => (m = {}) => enqueue(name, m.props, {
|
|
3
|
+
value: m.value,
|
|
4
|
+
currency: m.currency,
|
|
5
|
+
items_count: m.items,
|
|
6
|
+
item_ids: m.itemIds,
|
|
7
|
+
});
|
|
8
|
+
api.viewItemList = of("view_item_list");
|
|
9
|
+
api.selectItem = of("select_item");
|
|
10
|
+
api.viewItem = of("view_item");
|
|
11
|
+
api.addToCart = of("add_to_cart");
|
|
12
|
+
api.removeFromCart = of("remove_from_cart");
|
|
13
|
+
api.beginCheckout = of("begin_checkout");
|
|
14
|
+
/** transaction_id is what stops a purchase being counted twice when the customer
|
|
15
|
+
* reloads the confirmation page — the most common e-commerce analytics bug, and one
|
|
16
|
+
* that lands straight in reported revenue.
|
|
17
|
+
*
|
|
18
|
+
* URGENT, the last argument. Core flushes the first event of a page load and then
|
|
19
|
+
* batches until 50 events, `flushMs` (10s), or the page ending — the right trade for a
|
|
20
|
+
* scroll depth and the wrong one for money. Most visits are shorter than ten seconds,
|
|
21
|
+
* so a purchase in a short session rides entirely on a beacon fired while the page is
|
|
22
|
+
* being torn down, and that beacon is what a slow device is worst at. Measured on the CI
|
|
23
|
+
* runner, which is slower than a laptop and therefore closer to a real phone: a purchase
|
|
24
|
+
* fired and the tab closed stored nothing, intermittently, while passing every time on a
|
|
25
|
+
* laptop.
|
|
26
|
+
*
|
|
27
|
+
* The cost is bounded by CONVERSIONS rather than by traffic — at most one extra request
|
|
28
|
+
* per visit, on the small fraction of visits that convert. Deliberately not the other
|
|
29
|
+
* six: an abandoned cart is a funnel number, and losing a funnel number is not losing
|
|
30
|
+
* revenue. A cart that precedes a purchase in the same queue rides along anyway, because
|
|
31
|
+
* a flush drains the queue rather than one event. */
|
|
32
|
+
api.purchase = (m) => enqueue("purchase", m.props, {
|
|
33
|
+
value: m.value,
|
|
34
|
+
currency: m.currency,
|
|
35
|
+
items_count: m.items,
|
|
36
|
+
item_ids: m.itemIds,
|
|
37
|
+
transaction_id: m.transactionId,
|
|
38
|
+
}, true);
|
|
39
|
+
});
|
|
40
|
+
export {};
|
|
41
|
+
//# sourceMappingURL=commerce.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file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
|
|
1
|
+
/** Consent, and the stable identifier it unlocks.
|
|
2
|
+
*
|
|
3
|
+
* At tier 0 — the default, and what every site runs today — there is no consent to ask
|
|
4
|
+
* for and nothing here does anything. Identity is an HMAC over a salt the Worker rotates
|
|
5
|
+
* and deletes every day, which is what makes the collector cookieless and is the same
|
|
6
|
+
* design Plausible ships. Its cost is that the same person is a new identifier tomorrow,
|
|
7
|
+
* so retention cannot be measured at all.
|
|
8
|
+
*
|
|
9
|
+
* Tier 1 buys that back, and only where a visitor has actually agreed. We deliberately do
|
|
10
|
+
* NOT ship a banner: every serious storefront already runs a CMP — farmrio loads OneTrust,
|
|
11
|
+
* 898 KB of it — and a second prompt would ask the visitor twice while leaving it
|
|
12
|
+
* ambiguous which consent governs. So this listens for the consent that already exists
|
|
13
|
+
* and adds an explicit call for sites whose banner is homegrown.
|
|
14
|
+
*
|
|
15
|
+
* Three sources, in the order a site is likely to have them:
|
|
16
|
+
* 1. `__dq.consent(true|false)` — explicit, and always wins
|
|
17
|
+
* 2. IAB TCF v2 `__tcfapi` — what OneTrust and Cookiebot expose
|
|
18
|
+
* 3. Google Consent Mode — `analytics_storage` on the dataLayer, for GTM sites
|
|
19
|
+
*/
|
|
20
|
+
type Listener = (granted: boolean) => void;
|
|
21
|
+
/** The stable id, or "" when there is no consent. Reading this never creates one: an id
|
|
22
|
+
* minted before consent arrived is a persistent identifier set without permission, which
|
|
23
|
+
* is the exact thing consent is being asked about. */
|
|
24
|
+
export declare function clientId(): string;
|
|
25
|
+
export declare function setConsent(v: boolean): void;
|
|
26
|
+
export declare function onConsent(fn: Listener): void;
|
|
27
|
+
export declare function consentKnown(): boolean;
|
|
28
|
+
/** Wires up whichever CMP is present. Safe to call when none is: every branch is guarded,
|
|
29
|
+
* and a site with no banner simply never grants, which leaves it at tier 0. */
|
|
30
|
+
export declare function watchConsent(w: any): void;
|
|
31
|
+
export declare const CONSENT_KEY = "_dq_cid";
|
|
32
|
+
export {};
|
|
33
|
+
//# sourceMappingURL=consent.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"consent.d.ts","sourceRoot":"","sources":["../../../../../src/v8/analytics/runtime/modules/consent.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAIH,KAAK,QAAQ,GAAG,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,CAAC;AAuB3C;;uDAEuD;AACvD,wBAAgB,QAAQ,IAAI,MAAM,CAmBjC;AAYD,wBAAgB,UAAU,CAAC,CAAC,EAAE,OAAO,QAWpC;AAED,wBAAgB,SAAS,CAAC,EAAE,EAAE,QAAQ,QAErC;AACD,wBAAgB,YAAY,IAAI,OAAO,CAEtC;AAED;gFACgF;AAChF,wBAAgB,YAAY,CAAC,CAAC,EAAE,GAAG,QAqClC;AAWD,eAAO,MAAM,WAAW,YAAM,CAAC"}
|
|
@@ -0,0 +1,154 @@
|
|
|
1
|
+
/** Consent, and the stable identifier it unlocks.
|
|
2
|
+
*
|
|
3
|
+
* At tier 0 — the default, and what every site runs today — there is no consent to ask
|
|
4
|
+
* for and nothing here does anything. Identity is an HMAC over a salt the Worker rotates
|
|
5
|
+
* and deletes every day, which is what makes the collector cookieless and is the same
|
|
6
|
+
* design Plausible ships. Its cost is that the same person is a new identifier tomorrow,
|
|
7
|
+
* so retention cannot be measured at all.
|
|
8
|
+
*
|
|
9
|
+
* Tier 1 buys that back, and only where a visitor has actually agreed. We deliberately do
|
|
10
|
+
* NOT ship a banner: every serious storefront already runs a CMP — farmrio loads OneTrust,
|
|
11
|
+
* 898 KB of it — and a second prompt would ask the visitor twice while leaving it
|
|
12
|
+
* ambiguous which consent governs. So this listens for the consent that already exists
|
|
13
|
+
* and adds an explicit call for sites whose banner is homegrown.
|
|
14
|
+
*
|
|
15
|
+
* Three sources, in the order a site is likely to have them:
|
|
16
|
+
* 1. `__dq.consent(true|false)` — explicit, and always wins
|
|
17
|
+
* 2. IAB TCF v2 `__tcfapi` — what OneTrust and Cookiebot expose
|
|
18
|
+
* 3. Google Consent Mode — `analytics_storage` on the dataLayer, for GTM sites
|
|
19
|
+
*/
|
|
20
|
+
const KEY = "_dq_cid";
|
|
21
|
+
const listeners = [];
|
|
22
|
+
let granted = null; // null = not yet known, which is not "no"
|
|
23
|
+
/** A random identifier, not derived from anything about the visitor. It is a label the
|
|
24
|
+
* browser carries, so it can be deleted by the visitor and is meaningless anywhere else.
|
|
25
|
+
* The Worker hashes it with the site before storing, so the same browser is a different
|
|
26
|
+
* identifier on each customer's site — without that we would have built the cross-client
|
|
27
|
+
* identity graph that tier 0 exists to avoid. */
|
|
28
|
+
function mint() {
|
|
29
|
+
const b = new Uint8Array(16);
|
|
30
|
+
(globalThis.crypto ?? {}).getRandomValues?.(b);
|
|
31
|
+
return Array.from(b, (x) => x.toString(16).padStart(2, "0")).join("");
|
|
32
|
+
}
|
|
33
|
+
function store() {
|
|
34
|
+
try {
|
|
35
|
+
return window.localStorage;
|
|
36
|
+
}
|
|
37
|
+
catch {
|
|
38
|
+
return null;
|
|
39
|
+
} // blocked in some privacy modes
|
|
40
|
+
}
|
|
41
|
+
/** The stable id, or "" when there is no consent. Reading this never creates one: an id
|
|
42
|
+
* minted before consent arrived is a persistent identifier set without permission, which
|
|
43
|
+
* is the exact thing consent is being asked about. */
|
|
44
|
+
export function clientId() {
|
|
45
|
+
if (granted !== true)
|
|
46
|
+
return "";
|
|
47
|
+
const s = store();
|
|
48
|
+
if (!s)
|
|
49
|
+
return "";
|
|
50
|
+
let v = "";
|
|
51
|
+
try {
|
|
52
|
+
v = s.getItem(KEY) ?? "";
|
|
53
|
+
}
|
|
54
|
+
catch {
|
|
55
|
+
return "";
|
|
56
|
+
}
|
|
57
|
+
if (!v || v.length !== 32) {
|
|
58
|
+
v = mint();
|
|
59
|
+
try {
|
|
60
|
+
s.setItem(KEY, v);
|
|
61
|
+
}
|
|
62
|
+
catch {
|
|
63
|
+
return "";
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
return v;
|
|
67
|
+
}
|
|
68
|
+
/** Withdrawal has to erase, not merely stop sending. A visitor who says no and still finds
|
|
69
|
+
* the identifier in their browser was not given a choice, they were given a checkbox. */
|
|
70
|
+
function forget() {
|
|
71
|
+
try {
|
|
72
|
+
store()?.removeItem(KEY);
|
|
73
|
+
}
|
|
74
|
+
catch {
|
|
75
|
+
/* nothing to do about it */
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
export function setConsent(v) {
|
|
79
|
+
if (granted === v)
|
|
80
|
+
return;
|
|
81
|
+
granted = v;
|
|
82
|
+
if (!v)
|
|
83
|
+
forget();
|
|
84
|
+
for (const fn of listeners) {
|
|
85
|
+
try {
|
|
86
|
+
fn(v);
|
|
87
|
+
}
|
|
88
|
+
catch {
|
|
89
|
+
/* one listener must not stop another */
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
export function onConsent(fn) {
|
|
94
|
+
listeners.push(fn);
|
|
95
|
+
}
|
|
96
|
+
export function consentKnown() {
|
|
97
|
+
return granted !== null;
|
|
98
|
+
}
|
|
99
|
+
/** Wires up whichever CMP is present. Safe to call when none is: every branch is guarded,
|
|
100
|
+
* and a site with no banner simply never grants, which leaves it at tier 0. */
|
|
101
|
+
export function watchConsent(w) {
|
|
102
|
+
// 1. Google Consent Mode. GTM sites push `['consent', 'update', {analytics_storage}]`,
|
|
103
|
+
// and the state may already be on the dataLayer before we load.
|
|
104
|
+
const dl = w.dataLayer;
|
|
105
|
+
if (Array.isArray(dl)) {
|
|
106
|
+
const read = (a) => {
|
|
107
|
+
if (a?.[0] === "consent" && (a[1] === "update" || a[1] === "default") && a[2]) {
|
|
108
|
+
if (a[2].analytics_storage === "granted")
|
|
109
|
+
setConsent(true);
|
|
110
|
+
else if (a[2].analytics_storage === "denied")
|
|
111
|
+
setConsent(false);
|
|
112
|
+
}
|
|
113
|
+
};
|
|
114
|
+
for (const a of dl)
|
|
115
|
+
read(a);
|
|
116
|
+
const push = dl.push.bind(dl);
|
|
117
|
+
dl.push = function (...args) {
|
|
118
|
+
try {
|
|
119
|
+
read(args[0]);
|
|
120
|
+
}
|
|
121
|
+
catch {
|
|
122
|
+
/* keep GTM working */
|
|
123
|
+
}
|
|
124
|
+
return push(...args);
|
|
125
|
+
};
|
|
126
|
+
}
|
|
127
|
+
// 2. IAB TCF v2. Purpose 1 is "store and access information on a device", which is
|
|
128
|
+
// exactly what an identifier in localStorage is — not purpose 8 (measurement), which
|
|
129
|
+
// covers what we do with it once stored.
|
|
130
|
+
if (typeof w.__tcfapi === "function") {
|
|
131
|
+
try {
|
|
132
|
+
w.__tcfapi("addEventListener", 2, (data, ok) => {
|
|
133
|
+
if (!ok || !data)
|
|
134
|
+
return;
|
|
135
|
+
if (data.eventStatus !== "tcloaded" && data.eventStatus !== "useractioncomplete")
|
|
136
|
+
return;
|
|
137
|
+
setConsent(Boolean(data.purpose?.consents?.[1]));
|
|
138
|
+
});
|
|
139
|
+
}
|
|
140
|
+
catch {
|
|
141
|
+
/* a CMP that throws is a CMP that has not granted */
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
// Registered like every other module: core exposes the hook, this fills it in. A site at
|
|
146
|
+
// tier 0 downloads none of this — the same rule that keeps `commerce` off a blog.
|
|
147
|
+
window.__dqRegister?.((_enqueue, api) => {
|
|
148
|
+
watchConsent(window);
|
|
149
|
+
window.__dqCid = clientId;
|
|
150
|
+
// Overrides the core no-op, so a homegrown banner has something to call.
|
|
151
|
+
api.consent = (v) => setConsent(Boolean(v));
|
|
152
|
+
});
|
|
153
|
+
export const CONSENT_KEY = KEY;
|
|
154
|
+
//# sourceMappingURL=consent.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"consent.js","sourceRoot":"","sources":["../../../../../src/v8/analytics/runtime/modules/consent.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAEH,MAAM,GAAG,GAAG,SAAS,CAAC;AAGtB,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