1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-10-31 01:45:39 +03:00

Remove Countly analytics integration (#7808)

This commit is contained in:
Michael Telatynski
2022-02-15 16:58:30 +00:00
committed by GitHub
parent bb5f62edce
commit 8d4e83084c
29 changed files with 6 additions and 1199 deletions

View File

@@ -19,7 +19,6 @@ import { MatrixEvent } from "matrix-js-sdk/src/models/event";
import { Error as ErrorEvent } from "matrix-analytics-events/types/typescript/Error";
import Analytics from "./Analytics";
import CountlyAnalytics from "./CountlyAnalytics";
import { PosthogAnalytics } from './PosthogAnalytics';
export class DecryptionFailure {
@@ -39,7 +38,6 @@ export type ErrCodeMapFn = (errcode: string) => ErrorCode;
export class DecryptionFailureTracker {
private static internalInstance = new DecryptionFailureTracker((total, errorCode) => {
Analytics.trackEvent('E2E', 'Decryption failure', errorCode, String(total));
CountlyAnalytics.instance.track("decryption_failure", { errorCode }, null, { sum: total });
for (let i = 0; i < total; i++) {
PosthogAnalytics.instance.trackEvent<ErrorEvent>({
eventName: "Error",