Add new "Consent Banner" plugin, and update Google Analytics plugin to use it

This commit is contained in:
jeremy@jermolene.com 2020-06-22 11:31:54 +01:00
parent 3de6c95fd6
commit 4a84ed0018
14 changed files with 366 additions and 13 deletions

View file

@ -2,4 +2,6 @@ title: $:/plugins/tiddlywiki/googleanalytics/readme
This plugin enables you to use Google Analytics to track access to your online TiddlyWiki document. Based upon the [[official Google code|https://developers.google.com/analytics/devguides/collection/analyticsjs]].
By default, the user is not asked for permission before initialising Google Analytics. This plugin also optionally integrates with the "Consent Banner" plugin (also found in the official plugin library) so that Google Analytics is not initialised until the user grants explicit permission.
[[Source code|https://github.com/Jermolene/TiddlyWiki5/blob/master/plugins/tiddlywiki/googleanalytics]]