mirror of
https://github.com/element-hq/element-web
synced 2024-11-26 19:26:04 +03:00
Give Posthog a correct total count of decryption failures (#7475)
This commit is contained in:
parent
9fd933a0b6
commit
59ef2704f0
1 changed files with 7 additions and 5 deletions
|
@ -1632,11 +1632,13 @@ export default class MatrixChat extends React.PureComponent<IProps, IState> {
|
|||
const dft = new DecryptionFailureTracker((total, errorCode) => {
|
||||
Analytics.trackEvent('E2E', 'Decryption failure', errorCode, String(total));
|
||||
CountlyAnalytics.instance.track("decryption_failure", { errorCode }, null, { sum: total });
|
||||
PosthogAnalytics.instance.trackEvent<ErrorEvent>({
|
||||
eventName: "Error",
|
||||
domain: "E2EE",
|
||||
name: errorCode,
|
||||
});
|
||||
for (let i = 0; i < total; i++) {
|
||||
PosthogAnalytics.instance.trackEvent<ErrorEvent>({
|
||||
eventName: "Error",
|
||||
domain: "E2EE",
|
||||
name: errorCode,
|
||||
});
|
||||
}
|
||||
}, (errorCode) => {
|
||||
// Map JS-SDK error codes to tracker codes for aggregation
|
||||
switch (errorCode) {
|
||||
|
|
Loading…
Reference in a new issue