Zero One Documentation
Theme demo
  • Overview
  • Terms & Guidelines
  • Guide
    • Installation
      • Local environment
      • Server
      • Default language!
      • Multilanguage website
      • Config options
      • Folder structure
      • htaccess
      • Updating
      • PHP Composer
    • Administration panel
      • Translating panel
    • Site options
      • SEO options
      • Multi-language
    • Theme styling
      • Less/CSS setup
      • Changing Less variables
      • app.less file
      • Customizing elements
      • Helpful classes
    • Page types
      • Page options
    • Blog
      • Comments
      • Article
    • Work (Portfolio)
      • Project page
    • Shop
      • Snipcart
    • Layout Builder
      • Column Options block
      • Subgrid block
      • Card block
      • Text (Writer) block
      • Custom Heading block
      • Custom List block
      • Typed Text block
      • Quote block
      • Button block
      • › 25 more blocks
    • Form Builder (Premium)
    • OLD Page Builder deprecation
    • Tricks
      • Using icons in the content
      • Kirbytext link tag to button
      • Tricks with image classes
      • Adding Google Fonts
      • Custom icons
      • Cookie notice/banner
    • Theme extending
      • Page Transitions (Swup)
      • Contact form extending
      • Self-hosted fonts
      • Adding new templates
      • Adding new Content block (Layout Builder)
    • GDPR
  • More
  • Support
  • Hire us
  • Changelog
  • Credits
  • Affiliate
Powered by GitBook
On this page
  • Introduction
  • Fonts
  • Videos
  • Maps
  • Analytics
  • Contact form
  • Other

Was this helpful?

  1. Guide

GDPR

This page is all about how to make your website GDPR-compliant.

PreviousAdding new Content block (Layout Builder)NextSupport

Last updated 1 year ago

Was this helpful?

Introduction

Hi there! The fact you are on this page means you are having trouble making your website GDPR-compliant. Yeah, that tortured us too, and many others, so we decided to create this documentation page.

Not to explain far and wide, but it is very difficult to create and maintain a GDPR cookie solution. Every cookie system (analytics, social, maps...) has its own rules, and they change them often.

  • For every analytics, social network, or anything that leaves cookies, a specific solution must be developed

  • For example, the solution we created for Google Analytics, doesn’t apply to Matomo or Plausible. Because they all use different cookie systems. Not to talk about Facebook, Instagram, Twitter, and others

  • Also, they change their system every year, sometimes every month, so the code must be updated to follow up on changes

  • The cookie documentation for all of those analytics systems, social networks, etc, is either non-existent or terrible, so everything must be created blindly with a great amount of testing

It is no surprise that those 3rd party cookie solutions cost from 15 to hundreds of euros per month.

So, the best possible solution is to clear your website from cookies (if possible) and still use all features.

Fonts

You can self-host any font with Zero One (by default Zero One has self-hosted Google fonts), check out the documentation page for that

Videos

Also, you can use self-hosted videos in Zero One without problems.

Maps

If you want to just embed a map to show the location, just make a screenshot of the Google map location, add that image instead of the map, and link that image to the exact Google map location.

And if you need a more advanced map, then use the Google map API, then there will be no cookies or tracking. But you need to create a Google Developer account for this.

Analytics

If you want to use GDPR-compliant analytics, here are some suggestions.

We suggest these analytics because they are cookieless (no cookies):

And if you really want to use Google analytics, here are some 3rd party cookie notice solutions we recommend

Also, some of those 3rd-party cookie solutions can help you with other marketing/social cookie integrations.

Contact form

  1. Copy site/plugins/zero-one/snippets/contact/form.php file

  2. Paste to site/theme/snippets/contact/form.php (you must create a contact folder)

Then add the following code

<div class="uk-width-1-1">
     <label><input class="uk-checkbox" id="privacy" name="privacy" type="checkbox" checked required> I agree to the privacy policy</label>
</div>

At line 37 just before the

<div class="uk-width-1-2@s">
    <button class="uk-button uk-button-primary uk-margin-top" type="submit" name="submit" value="Submit"><?= $site->labelSubmit()->html() ?></button>
</div>

You can also see in the documentation how to customize the form further if needed

Other

If you are a developer looking to create your own cookie notice solution for some specific needs, we suggest checking out this open-source solution:

For embedding YouTube videos use in the URL instead of

(can be self-hosted, cloud in Europe)

(can be self-hosted, cloud in Europe)

In some countries, it is needed that your contact form to have a privacy acceptance checkbox before the submit button. Although we will make this default feature in version 4.4.1, you can customize now the contact form using the Zero One override system

www.youtube-nocookie.com
www.youtube.com
https://www.one.thezero.club/guide/page-builder/page-sections/video-block#youtube-and-vimeo-must-be-embed-url
https://matomo.org/
https://posthog.com/
https://plausible.io/
https://usefathom.com/
https://goaccess.io/
https://www.one.thezero.club/guide/theme-extending
LogoSelf-hosted fontsZero One Documentation
LogoGoogle Maps Platform  |  Google DevelopersGoogle Developers
LogoCookie notice/bannerZero One Documentation
LogoContact form extendingZero One Documentation
LogoGitHub - orestbida/cookieconsent: Simple cross-browser cookie-consent plugin written in vanilla jsGitHub