Not intended be merged, but can be tested. First draft of a cookie consent form. Still some questions to answer in the related issue but this is functional.
This starts a _sass folder, which is the recommended way to do custom CSS. Eventually the existing assets/css/custom.scss might be better split up into files in _sass. Splitting up the files by purpose makes it a little easier to manage.
This also starts a _includes/custom folder, which is meant to hold any include files that are not overriding something from Open SDG.
For testing purposes, this turns on Google Analytics (but not for an actual GA account).
This only handles Google Analytics right now, but could be tweaked to handle Hotjar or anything else.
While testing, you can look in the browser console for debug text. It should print a message whenever it would normally send data to Google Analytics.
Fixes #3523
Not intended be merged, but can be tested. First draft of a cookie consent form. Still some questions to answer in the related issue but this is functional.
This depends on https://github.com/open-sdg/open-sdg/pull/1235 so this PR points there in
remote_theme
.Some notes on the PR:
_sass
folder, which is the recommended way to do custom CSS. Eventually the existingassets/css/custom.scss
might be better split up into files in_sass
. Splitting up the files by purpose makes it a little easier to manage._includes/custom
folder, which is meant to hold any include files that are not overriding something from Open SDG.