diff --git a/services/web/app/src/Features/Analytics/AnalyticsManager.js b/services/web/app/src/Features/Analytics/AnalyticsManager.js index 82b21de6f9..5f3fae80d2 100644 --- a/services/web/app/src/Features/Analytics/AnalyticsManager.js +++ b/services/web/app/src/Features/Analytics/AnalyticsManager.js @@ -66,14 +66,6 @@ function recordEventForSession(session, event, segmentation) { if (_isAnalyticsDisabled() || _isSmokeTestUser(userId)) { return } - logger.debug({ - analyticsId, - userId, - event, - segmentation, - isLoggedIn: !!userId, - createdAt: new Date(), - }) _recordEvent({ analyticsId, userId, @@ -182,6 +174,17 @@ function _recordEvent( ) return } + logger.debug( + { + analyticsId, + userId, + event, + segmentation, + isLoggedIn: !!userId, + createdAt: new Date(), + }, + 'queueing analytics event' + ) Metrics.analyticsQueue.inc({ status: 'adding', event_type: 'event' }) analyticsEventsQueue .add(