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

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