riggraz / no-style-please

A (nearly) no-CSS, fast, minimalist Jekyll theme.
https://riggraz.dev/no-style-please/
MIT License
1.1k stars 542 forks source link

Add Google Analytics 4 #57

Open ipasechnikov opened 1 year ago

ipasechnikov commented 1 year ago

Hi. Thank you for creating this awesome theme. I really like the simplicity of it. I use it for my portfolio website.

I've added Google Analytics 4 support. It's basicaly a copy-paste from official "minima" theme. So there shouldn't be any bugs or issues I guess. And it works the exactly same way as in official documentation:

Enabling Google Analytics

To enable Google Analytics, add the following lines to your Jekyll site:

 google_analytics: UA-NNNNNNNN-N

Google Analytics will only appear in production, i.e., JEKYLL_ENV=production