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
Legal news
-
Legal 0.7.0: Support for core 3 and a repair manifest for consent logs
Legal 0.7.0 for Elixir Phoenix works with PhoenixKit core 3 and tells repair and doctor what the consent log table should look like.
-
Legal 0.6.0: Consent recorded on the server, Cookie Policy from what modules declare
Legal 0.6.0 for Elixir Phoenix records each cookie decision on the server with a signed cookie and writes the Cookie Policy from what modules collect.
-
Legal 0.5.1: Settings breadcrumb and a Publishing deprecation fix
Legal 0.5.1 for Elixir Phoenix shows Settings / Legal in the settings page header and drops a deprecated Publishing call. Needs Publishing 0.13.
-
Legal 0.5.0: A safety check on the consent log table, plus French and German
Legal 0.5.0 for Elixir Phoenix checks the consent log table's shape before adopting it and adds French and German translations of the banner and pages.
-
Legal 0.4.3: Documentation only
Legal 0.4.3 for Elixir Phoenix changes no behaviour: it corrects the package's documentation and refreshes its locked dependencies.
Install
1
Add to mix.exs
{:phoenix_kit_legal, "~> 0.7"}
2 Fetch it and run its migrations
$ mix deps.get && mix phoenix_kit.update
3
Switch it on in /admin/modules
- Package
- phoenix_kit_legal
- Releases
-
- 0.7.0
- 0.6.0
- 0.5.1
- Admin
-
/admin/settings/legal - Links
- HexDocs ↗ GitHub ↗ Changelog ↗
Related modules
What it needs, what builds on it, and its neighbours in Platform & tools.
Publishing
Database-backed CMS for blogs and docs, multi-language and versioned
Needs AI
Dashboards
Build admin dashboard pages from widgets that any module exposes
No other modules needed
Database Explorer
Browse Postgres tables and watch row changes live from the admin
No other modules needed
Hello World
A demo module to copy when building your own PhoenixKit module
No other modules needed
Stats
Collect and chart time-series metrics from external sources over Graphite
No other modules needed
Sync
Pull data between PhoenixKit sites over token-based connections
No other modules needed