vendor/microsoft-clarity · vendor template
Clarity loaders put the project ID in the path
The published tracking code loads www.clarity.ms/tag/{projectId}. Compare src with the code from Clarity Setup. /collect is not this pack. Browser UET is vendor/microsoft-uet.
What this pack matches
Rules
Codes are stable. A finding in CI, MCP, or the playground lands on the same id.
| Field | Required | What it checks | Rule ids | Source |
|---|---|---|---|---|
project_id |
required | It is the Clarity project ID. The published tracking code loads `www.clarity.ms/tag/{projectId}`. Fix: Copy the tracking code from Clarity Setup so the path is `/tag/{projectId}`. | vendor.microsoft-clarity.param.project_id.missingvendor.microsoft-clarity.param.project_id.empty |
docs |
Validate a payload
pixellint validate url "$ARTIFACT" --rulepack vendor/microsoft-clarity
Try this failing payload in the playground. Clarity tag missing project ID.
https://www.clarity.ms/tag/
cargo install pixellint
·
npm install pixellint