Skip to content

Commit

Permalink
chore: disable v1 analytics
Browse files Browse the repository at this point in the history
  • Loading branch information
sandor-trombitas committed Nov 7, 2024
1 parent 60a0011 commit 21a9ecf
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions src/lib/analytics/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import stripAnsi = require('strip-ansi');
import { getAuthHeader, someTokenExists } from '../api-token';
import config from '../config';
import { makeRequest } from '../request';
import { config as userConfig } from '../user-config';
// import { config as userConfig } from '../user-config';
import { getStandardData } from './getStandardData';

// Add flags whose values should be redacted in analytics here.
Expand Down Expand Up @@ -56,11 +56,13 @@ export function addDataAndSend(
}

export function allowAnalytics(): boolean {
if (userConfig.get('disable-analytics') || config.DISABLE_ANALYTICS) {
return false;
} else {
return true;
}
// Analytics disabled until we can migrate to v2 analytics
return false;
// if (userConfig.get('disable-analytics') || config.DISABLE_ANALYTICS) {
// return false;
// } else {
// return true;
// }
}

/**
Expand Down

0 comments on commit 21a9ecf

Please sign in to comment.