Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Commit

Permalink
Merge pull request #2871 from matrix-org/travis/redact-url
Browse files Browse the repository at this point in the history
Ensure the page URL is redacted before tracking analytics events
  • Loading branch information
turt2live authored Apr 4, 2019
2 parents d45f431 + 7e96d49 commit 37afa9f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Analytics.js
Original file line number Diff line number Diff line change
Expand Up @@ -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]);
}

Expand Down

0 comments on commit 37afa9f

Please sign in to comment.