We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8b673de commit 56d5ab6Copy full SHA for 56d5ab6
common/src/analytics.ts
@@ -71,9 +71,8 @@ export function trackEvent({
71
properties?: Record<string, any>
72
logger: Logger
73
}) {
74
- if (!isProdEnv(analyticsConfig?.envName)) {
75
- // Note (James): This log was too noisy. Reenable it as you need to test something.
76
- // logger.info({ payload: { event, properties } }, event)
+ // Don't track events in non-production environments
+ if (env.NEXT_PUBLIC_CB_ENVIRONMENT !== 'prod') {
77
return
78
}
79
0 commit comments