Skip to content

Legal

Generated legal pages, cookie consent banner and consent logging

v0.7.0 Platform & tools · updated 4 weeks ago · 2.4k downloads

Requires Publishing

mix.exs
{:phoenix_kit_legal, "~> 0.7"}

Generates legal pages such as Privacy Policy, Cookie Policy and Terms of Service for frameworks including GDPR, UK GDPR, CCPA/CPRA, LGPD and PIPEDA, and stores them as posts in phoenix_kit_publishing, which serves them at /legal. It adds a cookie consent widget with Google Consent Mode v2 and logs every consent decision to phoenix_kit_consent_logs.

Use it when

  • You need a privacy policy, cookie policy and terms for an EU or US audience
  • You need a cookie banner and a record of who consented to what

What it gives you

  • 7 compliance frameworks (GDPR, UK GDPR, CCPA/CPRA, US States, LGPD, PIPEDA, Generic)
  • Page generation: Privacy Policy, Cookie Policy, Terms of Service, Do Not Sell, Data Retention, CCPA Notice, Acceptable Use
  • EEx templates overridable from the host app
  • Cookie consent widget with Google Consent Mode v2
  • Consent audit log with user/session, IP and hashed user agent
  • Settings page at /admin/settings/legal

Install

1 Add to mix.exs

deps
{:phoenix_kit_legal, "~> 0.7"}

2 Fetch it and run its migrations

Terminal
$ mix deps.get && mix phoenix_kit.update

3 Switch it on in /admin/modules

Releases
  1. 0.7.0
  2. 0.6.0
  3. 0.5.1
Admin
/admin/settings/legal

Related modules

What it needs, what builds on it, and its neighbours in Platform & tools.