{"data":{"slug":"discovered-96fcf00df61eed2206e084d914befbca154ac96c43f7f520","title":"Privacy Analytics","summary":"Audit third-party embeds, add a fair consent banner only if needed, and wire analytics to the brief's success number.","url":"https:\/\/skillshunter.net\/skills\/discovered-96fcf00df61eed2206e084d914befbca154ac96c43f7f520","json_url":"https:\/\/skillshunter.net\/api\/public\/v1\/skills\/discovered-96fcf00df61eed2206e084d914befbca154ac96c43f7f520","markdown_url":"https:\/\/skillshunter.net\/skills\/discovered-96fcf00df61eed2206e084d914befbca154ac96c43f7f520.md","download_url":"https:\/\/skillshunter.net\/skills\/discovered-96fcf00df61eed2206e084d914befbca154ac96c43f7f520\/download","category":{"slug":"data-research","name":"Data & Research"},"editor_note":"Run `node \"${CLAUDE_PLUGIN_ROOT}\/scripts\/consent.mjs\" audit \"${CLAUDE_PROJECT_DIR}\"` to start the consent audit. Ensure that every third-party script, embed, or font is documented in `privacy\/cookies.md`. A consent banner is required only if non-essential cookies or trackers are present.","instructions":"---\nname: privacy-analytics\ndescription: Audit third-party embeds, add a fair consent banner only if needed, and wire analytics to the brief's success number.\ndisable-model-invocation: true\n---\n# \/lilac:privacy-analytics\n\nThree steps. Never invent company details: unknown stays UNKNOWN.\n\n1. **Consent audit.** Run `node \"${CLAUDE_PLUGIN_ROOT}\/scripts\/consent.mjs\" audit \"${CLAUDE_PROJECT_DIR}\"`. Every third-party script, embed or font must have a row in `privacy\/cookies.md`. A banner is needed only when something sets non-essential cookies or trackers; cookieless analytics and no embeds need none.\n2. **If rows are missing:** ask the law with AskUserQuestion (GDPR \/ DPDP \/ CCPA \/ LGPD), then run `consent.mjs init \"${CLAUDE_PROJECT_DIR}\" --law <law>`. It writes the cookie table, an equal Accept\/Reject banner snippet and a policy outline. Ask the owner for each UNKNOWN (purpose, duration, vendor, lawful basis, company name, contact). Do not guess. Paste the banner into every page only when the audit says it is needed.\n3. **Analytics.** Run `node \"${CLAUDE_PLUGIN_ROOT}\/scripts\/analytics.mjs\" plan \"${CLAUDE_PROJECT_DIR}\"` (add `--provider posthog` if asked). It reads the brief's Success number and wires the main action to one event, cookieless. If it says \"success must be a number\", go back to the brief and ask for one.\n\nPayments: Stripe is the default. For India, use Razorpay (`features\/server\/payments\/razorpay.mjs`): prices are set on the server, webhooks are signature-checked, test keys only.\n\nThen ask with AskUserQuestion: Approve \/ Change something \/ Stop. Show the audit result and the files written. Not legal advice: say so and suggest a lawyer reviews the policy.\n","use_cases":["Audit third-party scripts for compliance with privacy regulations","Determine if a consent banner is required based on cookie usage","Integrate analytics tracking with a project's success metrics"],"limitations":[],"compatibility":[],"setup_tip":null,"sample_input":null,"sample_output":null,"source_url":"https:\/\/github.com\/DevPatel128\/lilac-plugin\/blob\/7e77aadbd31442412fba6856e43e4a2d8b781a6d\/skills\/privacy-analytics\/SKILL.md","source_commit":"7e77aadbd31442412fba6856e43e4a2d8b781a6d","license":null,"version":null,"listing_approved_at":"2026-11-29","created_at":"2026-11-28T18:58:29.000000Z","updated_at":"2026-11-29T10:54:05.000000Z","seo_title":"Privacy Analytics Audit Tool","seo_description":"Audit third-party embeds and manage consent banners based on cookie usage. Wire analytics to your project's success metrics.","seo_keywords":["privacy audit","third-party embeds","consent banner","cookie tracking","analytics integration"]}}