# tracking-plan

Check that tracked events match the tracking plan (names, required props, types) and carry no personal data

- **Space:** product-analytics-public (https://github.com/Tech-Realm/space-product-analytics-public/tree/main/tracking-plan)
- **Level:** L2 (as the registry reports it)
- **Keys it needs (names only):** none
- **Tools:** python3
- **Routes:** stdlib; checks: 2
- **Uses:** new (no recorded use yet)
- **Install:** `logicpacks pack use product-analytics-public/tracking-plan` or MCP `get_pack product-analytics-public/tracking-plan`
- **Files:** CHANGELOG.md, code/tracking_plan.py, outcome/EVIDENCE.md, outcome/checks.yaml, outcome/fixtures/bad.ndjson, outcome/fixtures/good.ndjson, outcome/fixtures/plan.json, outcome/results.json, pack.yaml, refs/refs.yaml, spec/SPEC.md, spec/source.md

## Purpose (spec/SPEC.md)

## Goal

Check that tracked events match the tracking plan (names, required props, types) and carry no personal data.

## Steps

1. Write the plan: every event, its required and optional props with types.
2. Export a day of raw events as NDJSON (PostHog/Umami API or Plausible custom events).
3. `python3 code/tracking_plan.py plan.json events.ndjson`; fix code that sends unknown events, missing/mistyped props or personal data.

## Edge cases

- Numbers sent as strings fail on purpose (they break sums).

## Don'ts

- Never send emails, phone numbers or names as event props.

## Check

`lp pack check product-analytics/tracking-plan` runs outcome/checks.yaml.



---

Canonical URL: https://logicpacks.io/packs/product-analytics-public/tracking-plan

Developed by TechRealm (techrealm.online), the software team. Operated by Al Jash Trading (Establishment), Abu Dhabi, since 1994, the legal entity that hosts and is responsible for the service. Economic licence CN-1030597, Abu Dhabi Registration Authority. Address: Office 5, Bani Yas West 4, Bani Yas, Abu Dhabi, UAE. Website: https://aljashtrading.com. Contact: hello@logicpacks.io, security@logicpacks.io, WhatsApp +1 713 632 2262 (https://wa.me/17136322262).

Machine-readable index: [/llms.txt](/llms.txt). Plain facts: [/about.md](/about.md). Safety: [/safety.md](/safety.md).
