Setting Google Analytics on a Jekyll website and implementing cookie consent collect

Click for: original source

It is very useful to have Google Analytics on your website to have an idea of how many (or how few) people are visiting. Using Google Analytics on a website requires a valid consent from visitors (Because of ePrivacy Directive and not the GDPR). By Coralie Collignon.

The article provides step by step instructions how to deal with cookie consent on a static site:

  • Implementing Google Analytics
    • Creating a Tracking ID on Google Analytics
    • Implementing Google Analytics in your Jekyll website
  • Collecting cookie consent
    • Not all cookie banners are compliant
    • Implementing a compliant cookie banner

You will find links to further resources. e.g. Jekyll Codex has a tutorial explaining how to have the correct cookie banner and provides the code to use in the cookie-consent.html. All the code is provided with explanation and enhancement journey documented. Good read!

[Read More]

Tags analytics miscellaneous big-data web-development