|
|
|
@ -57,11 +57,19 @@ const MatomoDialog = (props) => { |
|
|
|
|
const declineModal = async () => { |
|
|
|
|
settings.updateMatomoAnalyticsChoice(false) |
|
|
|
|
_paq.push(['optUserOut']) |
|
|
|
|
// revoke tracking consent
|
|
|
|
|
_paq.push(['forgetConsentGiven']); |
|
|
|
|
// OR revoke cookie consent
|
|
|
|
|
_paq.push(['forgetCookieConsentGiven']); |
|
|
|
|
setVisible(false) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
const handleModalOkClick = async () => { |
|
|
|
|
_paq.push(['forgetUserOptOut']) |
|
|
|
|
// user has given consent to process their data
|
|
|
|
|
_paq.push(['setConsentGiven']); |
|
|
|
|
// OR user has given consent to store and use cookies
|
|
|
|
|
_paq.push(['setCookieConsentGiven']); |
|
|
|
|
settings.updateMatomoAnalyticsChoice(true) |
|
|
|
|
setVisible(false) |
|
|
|
|
} |
|
|
|
|