Merge pull request #5382 from matrix-org/t3chguy/countly

Track UISIs as Countly Events
This commit is contained in:
Michael Telatynski 2020-11-03 10:42:02 +00:00 committed by GitHub
commit 6a916757df
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1407,6 +1407,7 @@ export default class MatrixChat extends React.PureComponent<IProps, IState> {
const dft = new DecryptionFailureTracker((total, errorCode) => {
Analytics.trackEvent('E2E', 'Decryption failure', errorCode, total);
CountlyAnalytics.instance.track("decryption_failure", { errorCode }, null, { sum: total });
}, (errorCode) => {
// Map JS-SDK error codes to tracker codes for aggregation
switch (errorCode) {