@koda-sl/baker-cli 0.132.1 → 0.133.0-dev.42a8955b3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -954,6 +954,33 @@ Each finding: `{id, area, check, status, severity, evidence, fix: {explanation,
954
954
 
955
955
  ---
956
956
 
957
+ ### Landing Analytics (`baker analytics`)
958
+
959
+ First-party analytics for every published landing page — pageviews, unique visitors, sessions, and form submits, collected by a built-in consent-aware beacon (no setup, no third-party script) and stored in Tinybird. Read-only; scoped to the API key's company.
960
+
961
+ ```bash
962
+ baker analytics # = overview, last 28 days
963
+ baker analytics overview --period 7d
964
+ baker analytics timeseries --period 28d --output md
965
+ baker analytics pages --period 28d --limit 20
966
+ baker analytics sources --period 90d
967
+ baker analytics events --period 7d
968
+ ```
969
+
970
+ | Subcommand | Returns |
971
+ |---|---|
972
+ | `overview` | pageviews, visitors, sessions, form_submits |
973
+ | `timeseries` | daily pageviews/visitors/form_submits |
974
+ | `pages` | top pages by pageviews |
975
+ | `sources` | top traffic sources (utm_source → referrer domain → direct) |
976
+ | `events` | non-pageview events (form_submit + custom) |
977
+
978
+ Flags: `--period today|7d|28d|90d` (default `28d`), `--limit 1-100` (list reports), `--output json|files|md`, `--fields a,b`.
979
+
980
+ Backend env: `TINYBIRD_TOKEN` (read token) and optional `TINYBIRD_HOST` on the Convex deployment — unset, commands return a clean "not configured" error. See `tinybird/README.md`.
981
+
982
+ ---
983
+
957
984
  ### Google Analytics 4 (`baker ga4`)
958
985
 
959
986
  GA4 commands for multi-channel audits. Playbook-aligned presets, property health audits, and free-form Data API queries.
@@ -7,9 +7,9 @@ import {
7
7
  __toESM
8
8
  } from "./chunk-RK67WL4O.js";
9
9
 
10
- // ../../node_modules/.pnpm/safe-stable-stringify@2.5.0/node_modules/safe-stable-stringify/index.js
10
+ // ../../.pnpm-store/v10/links/@/safe-stable-stringify/2.5.0/810146e81bae4e3a061fe487864f2fde80c4b03b886877dc0f1fffbc6480b67e/node_modules/safe-stable-stringify/index.js
11
11
  var require_safe_stable_stringify = __commonJS({
12
- "../../node_modules/.pnpm/safe-stable-stringify@2.5.0/node_modules/safe-stable-stringify/index.js"(exports, module) {
12
+ "../../.pnpm-store/v10/links/@/safe-stable-stringify/2.5.0/810146e81bae4e3a061fe487864f2fde80c4b03b886877dc0f1fffbc6480b67e/node_modules/safe-stable-stringify/index.js"(exports, module) {
13
13
  "use strict";
14
14
  var { hasOwnProperty } = Object.prototype;
15
15
  var stringify = configure2();
@@ -1002,7 +1002,7 @@ function describeCause(c) {
1002
1002
  }
1003
1003
  }
1004
1004
 
1005
- // ../../node_modules/.pnpm/safe-stable-stringify@2.5.0/node_modules/safe-stable-stringify/esm/wrapper.js
1005
+ // ../../.pnpm-store/v10/links/@/safe-stable-stringify/2.5.0/810146e81bae4e3a061fe487864f2fde80c4b03b886877dc0f1fffbc6480b67e/node_modules/safe-stable-stringify/esm/wrapper.js
1006
1006
  var import__ = __toESM(require_safe_stable_stringify(), 1);
1007
1007
  var configure = import__.default.configure;
1008
1008
  var wrapper_default = import__.default;
@@ -7719,4 +7719,4 @@ export {
7719
7719
  defaultRegistry,
7720
7720
  createEngineFromEnv
7721
7721
  };
7722
- //# sourceMappingURL=chunk-MWR25ZMU.js.map
7722
+ //# sourceMappingURL=chunk-O3TH7JW5.js.map