In 2024, let your Django website visitors control their browsing privacy with this cookie consent app
EU regulations added frustrating restrictions that must be met when developing websites to stay legal
As stated by GDPR cookie law, websites that serve content for people from European Union must get consent from website visitors before storing any cookies that are not strictly necessary for the website to function. Not complying with GDPR laws can result in a fine of up to €20 million or 4% of the company's annual revenue, whichever is greater.
But this Django app gets you covered
Django GDPR Cookie Consent is the best Django app available in the market at the time of writing for managing Cookie Consent.
Django GDPR Cookie Consent allows you to set up a modal dialog for cookie explanations and preferences. When a specific cookie section is accepted, the widget loads or renders HTML snippets related to that section. For example, if a visitor approved Performance cookies, they would get Google Analytics immediately loaded.
The visitor can edit their preferences on a cookie management page afterward. And that will attempt to delete unnecessary cookies from the browser.
Cookie preferences will be saved in a cookie. And in addition, they will be logged in the database for legal reasons.
Django GDPR Cookie Consent saves your time and money
This app is made to be compliant with GDPR and ePrivacy directives.
It is easy to configure: copy the default settings dictionary and modify it to match your website's needs.
It comes with a nice-looking UI but is also very flexible regarding styling and branding.
As a developer, you can save at least one week of your in-house solution's development. And this Django app costs less than a standard cookie management service that you can embed into your websites.
The usual price elsewhere is €20/month/domain, which is €240/year/domain. And here, the price is not bounded to domains and is not recurring: you buy it once and use it for as many websites as you need.
An alternative is to use django-cookie-consent, but it only deals with the back-end, so you have to implement the frontend yourself. Also, it requires reloading the page for the scripts to be executed. And the cookie declarations are saved in the database, so it is more hassle to copy them one-by-one between projects with similar configurations.
Use the best practices of cookie management
When building this module, there were a series of websites checked and the best practices were chosen.
Using the Django GDPR Cookie Consent app, you store the following information about the cookies in Django project settings:
- What are the cookie sections (e.g. "Essential", "Functionality", "Performance", "Marketing")? Are they bounded with any conditional HTML snippets?
- What are the cookie providers within each section (e.g., "This website," "Google Analytics," "Facebook," "Youtube," etc.)?
- What are the cookies set by each of those providers?
Descriptions for sections, providers, or cookies are translatable. User preferences are saved in a cookie too. If a particular section is unselected later, cookies related to that section are attempted to get deleted.
Wanna see some code?
We are users as well as developers of our own product
We are interested ourselves to provide the best quality for this app, because it is used in production for the websites we develop and nurture:
Here is what to expect from Django GDPR Cookie Consent
- Saves at least a week of development work.
- Highly flexible and configurable.
- Can be used for as many Django websites as necessary.
- Easy to copy the configuration from one project to another.
- Comes with pretty nice-looking default styling and a responsive layout.
- 5 layout options for the modal dialog: center, top, left, right, or bottom.
- Typography and buttons will match your website's style (no iframes used).
- All functionality can be extended, overwritten, or replaced.
- Uses configuration in Django settings and templates.
- No need to modify or adapt scripts from third parties (most of the time).
- Logs the cookie consent choices from visitors into the database for legal compliance.
- Developed with internationalization in mind.
- Compatible with Content-Security-Policy via Django-CSP.
- MIT license applied.
- No recurring subscriptions, no limitation per domain, just a single payment.
- Designed and implemented by the author of "Web development with Django Cookbook."
Any questions, bug reports, or feature requests? Please send them to https://www.djangotricks.com/feedback/
Highly customizable Django app to make your Django website compatible with GDPR Cookie law