mirror of
https://github.com/vector-im/element-web.git
synced 2024-11-16 21:24:59 +08:00
Merge pull request #2871 from matrix-org/travis/redact-url
Ensure the page URL is redacted before tracking analytics events
This commit is contained in:
commit
37afa9fc0e
@ -201,6 +201,7 @@ class Analytics {
|
||||
|
||||
trackEvent(category, action, name, value) {
|
||||
if (this.disabled) return;
|
||||
this._paq.push(['setCustomUrl', getRedactedUrl()]);
|
||||
this._paq.push(['trackEvent', category, action, name, value]);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user