Closed froggleston closed 1 month ago
Thanks @tobyhodges ! I agree. The addition of user-specified tracking code would hopefully be fairly transparent, as tracking code would be committed alongside any lesson. I think that at least having the option to include or exclude Matomo tracking would make this PR worth it.
This PR aims to implement configurable analytics to address #438 with a new config.yaml option,
analytics
.Options:
analytics: carpentries
will add the Carpentries matomo tracking script to the footer.html (see corresponding varnish PR)analytics: | <user_string>
will add the user supplied tracker script string, e.g. for google analytics: