FEATURE: Add do_not_track and disableCookies settings (#2)
This commit is contained in:
parent
bbd0dcb82d
commit
a488709d75
@ -33,6 +33,14 @@
|
||||
_paq.push(["setDomains", allDomains]);
|
||||
}
|
||||
|
||||
if (settings.do_not_track) {
|
||||
_paq.push(["setDoNotTrack", true]);
|
||||
}
|
||||
|
||||
if (settings.disable_cookies) {
|
||||
_paq.push(["disableCookies"]);
|
||||
}
|
||||
|
||||
_paq.push(["setCustomUrl", url]);
|
||||
_paq.push(["setDocumentTitle", title]);
|
||||
_paq.push(["trackPageView"]);
|
||||
|
@ -17,3 +17,11 @@ subdomain_tracking:
|
||||
type: bool
|
||||
default: false
|
||||
description: Track visitors across main domain & subdomains, assuming discourse is on a subdomain.
|
||||
do_not_track:
|
||||
type: bool
|
||||
default: false
|
||||
description: So tracking requests will not be sent if visitors do not wish to be tracked.
|
||||
disable_cookies:
|
||||
type: bool
|
||||
default: false
|
||||
description: Disables all first party cookies. Existing Matomo cookies for this website will be deleted on the next pageview.
|
||||
|
Loading…
x
Reference in New Issue
Block a user