mark email sent events as non-interactions
This commit is contained in:
@@ -85,7 +85,8 @@ def _track_notification_sent(message, context):
|
||||
'uuid': unicode(message.uuid),
|
||||
'send_uuid': unicode(message.send_uuid),
|
||||
'thread_id': context['thread_id'],
|
||||
'thread_created_at': date.deserialize(context['thread_created_at'])
|
||||
'thread_created_at': date.deserialize(context['thread_created_at']),
|
||||
'nonInteraction': 1,
|
||||
}
|
||||
analytics.track(
|
||||
user_id=context['thread_author_id'],
|
||||
|
||||
@@ -216,6 +216,7 @@ def _track_message_sent(site, user, msg):
|
||||
'language': msg.language,
|
||||
'uuid': unicode(msg.uuid),
|
||||
'send_uuid': unicode(msg.send_uuid),
|
||||
'nonInteraction': 1,
|
||||
}
|
||||
course_ids = msg.context.get('course_ids', [])
|
||||
properties['num_courses'] = len(course_ids)
|
||||
|
||||
Reference in New Issue
Block a user