zedkit
@zedtech/zedkit-observability

Persist analytics consent choices

Small consent store with memory and localStorage backends.

alpha

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-observability

Latest: 0.1.0 (via changesets).

Example

Usage
import { createMemoryConsentStore } from "@zedtech/zedkit-observability/consent";
const store = createMemoryConsentStore();
store.write({ analytics: true, marketing: false });

Wraps: (none)

On this page