-
-
Save Chuvisco88/2b446a5c9190b77b41eaafab358223ec to your computer and use it in GitHub Desktop.
Hi!
I was looking for a simple cookie consent button and this works.
Can I use this for my website?
If yes, what type of attribution do you want?
Cheers
@Axpere Sure, you can just use it and I do not need any attribution :)
@Chuvisco88 Thanks!
Can we pass liquid site variables to https://gist.github.com/Chuvisco88/2b446a5c9190b77b41eaafab358223ec#file-jekyll-cookie-consent-html-L30 like {{ site.ga }}?
@inetbiz should be very much possible given you are using jekyll, yes
@andreyka26-git you are mistaken, it is possible to disable the ip lookups. Have a look at https://github.com/osano/cookieconsent for reference of the options that can be passed with window.cookieconsent.initialise
sorry you are right, I misconfigured it. Thank you
Thank you for this solution, if anyone else is integrating this into a mmistakes theme, it can replace the _include/google-analytics.html file and gtag('config', '{{ site.google_analytics }}') can be used so the ga id can be kept in the config.yml
Hi!
I was looking for a simple cookie consent button and this works.
Can I use this for my website?
If yes, what type of attribution do you want?
Cheers