OpenTechFund / apply-app

Submission management software for open calls
BSD 3-Clause "New" or "Revised" License
5 stars 2 forks source link

Matomo analytics should respect cookie preferences #71

Closed wes-otf closed 1 month ago

wes-otf commented 4 months ago

First, _mtm.push(['requireCookieConsent']); should be set here:

https://github.com/OpenTechFund/apply-app/blob/d005f92321c1f8a167dc02ef9dc76ea399ac58e5/hypha/templates_custom/includes/head_end.html#L3

then the cookieconsent cookie should be monitored and if/when it's state updates to accept analytics cookies, _mtm.push(['setConsentGiven']) should be called

Matomo consent docs: https://developer.matomo.org/guides/tracking-consent

wes-otf commented 1 month ago

Completed via https://github.com/OpenTechFund/apply-app/commit/b85164f8d391be41f9858e7b2ef8de22a94ea68e.