Configure Google Analytics
Read the official guide if you haven't used the google-analytics before.
Enable Google Analytics
For development (live preview):
For github-pages:
-
Set a repository variable named
G_PROPERTYwith your google property id -
Trigger
ci.yamlto update changes
The cookie consent is enabled with the google analytics.
Disable Google Analytics
Unset the environment and delete the repository variable.
How does this work ?
See Makefile in the github repository.