@zedtech/zedkit-observability
Persist analytics consent choices
Small consent store with memory and localStorage backends.
alpha
Usage
At a glance
- Who: Public sites that must record analytics/marketing opt-in before loading tags.
- What: Small consent store with memory and localStorage backends.
- Use when: Before gating trackers or third-party scripts.
- Avoid when: Logged-in admin apps with no public marketing tags.
Install
pnpm add @zedtech/zedkit-observabilityLatest: 0.1.0 (via changesets).
Example
import { createMemoryConsentStore } from "@zedtech/zedkit-observability/consent";
const store = createMemoryConsentStore();
store.write({ analytics: true, marketing: false });Wraps: (none)