Legal
v0.7.0Generated legal pages, cookie consent banner and consent logging
Requires Publishing
Install LegalGenerates 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
Nothing posted about Legal yet. Read its changelog or see all PhoenixKit news.
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