Skip to content

Commit

Permalink
fix: update analytics todo comments
Browse files Browse the repository at this point in the history
  • Loading branch information
pawanpaudel93 committed Dec 29, 2024
1 parent 06451d6 commit 8066413
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/utils/analytics.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import { ERR_MSG_NO_WALLETS_ADDED } from "~utils/auth/auth.constants";

const PUBLIC_SEGMENT_WRITEKEY = "J97E4cvSZqmpeEdiUQNC2IxS1Kw4Cwxm";

// TODO: uncomment this once we have fix
// TODO: uncomment this once we have a fix for the analytics
// const analytics = AnalyticsBrowser.load({
// writeKey: PUBLIC_SEGMENT_WRITEKEY
// });
Expand Down Expand Up @@ -70,7 +70,7 @@ export enum PageType {
}

export const trackPage = async (title: PageType) => {
// TODO: remove this once we have a proper solution
// TODO: remove this once we have a fix for the analytics
return;
const enabled = await getSetting("analytics").getValue();

Expand Down Expand Up @@ -121,7 +121,7 @@ export const trackDirect = async (
};

export const trackEvent = async (eventName: EventType, properties: any) => {
// TODO: remove this once we have a proper solution
// TODO: remove this once we have a fix for the analytics
return;
// first we check if we are allowed to collect data
const enabled = await getSetting("analytics").getValue();
Expand Down

0 comments on commit 8066413

Please sign in to comment.