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:
Travis Ralston 2019-04-04 11:59:57 -06:00 committed by GitHub
commit 37afa9fc0e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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]);
}