|
@@ -66,14 +66,6 @@ function recordEventForSession(session, event, segmentation) {
|
|
|
if (_isAnalyticsDisabled() || _isSmokeTestUser(userId)) {
|
|
if (_isAnalyticsDisabled() || _isSmokeTestUser(userId)) {
|
|
|
return
|
|
return
|
|
|
}
|
|
}
|
|
|
- logger.debug({
|
|
|
|
|
- analyticsId,
|
|
|
|
|
- userId,
|
|
|
|
|
- event,
|
|
|
|
|
- segmentation,
|
|
|
|
|
- isLoggedIn: !!userId,
|
|
|
|
|
- createdAt: new Date(),
|
|
|
|
|
- })
|
|
|
|
|
_recordEvent({
|
|
_recordEvent({
|
|
|
analyticsId,
|
|
analyticsId,
|
|
|
userId,
|
|
userId,
|
|
@@ -182,6 +174,17 @@ function _recordEvent(
|
|
|
)
|
|
)
|
|
|
return
|
|
return
|
|
|
}
|
|
}
|
|
|
|
|
+ logger.debug(
|
|
|
|
|
+ {
|
|
|
|
|
+ analyticsId,
|
|
|
|
|
+ userId,
|
|
|
|
|
+ event,
|
|
|
|
|
+ segmentation,
|
|
|
|
|
+ isLoggedIn: !!userId,
|
|
|
|
|
+ createdAt: new Date(),
|
|
|
|
|
+ },
|
|
|
|
|
+ 'queueing analytics event'
|
|
|
|
|
+ )
|
|
|
Metrics.analyticsQueue.inc({ status: 'adding', event_type: 'event' })
|
|
Metrics.analyticsQueue.inc({ status: 'adding', event_type: 'event' })
|
|
|
analyticsEventsQueue
|
|
analyticsEventsQueue
|
|
|
.add(
|
|
.add(
|