mark email sent events as non-interactions

This commit is contained in:
Gabe Mulley
2018-03-22 13:19:18 -04:00
parent a84884fff9
commit 669f61b2ea
2 changed files with 3 additions and 1 deletions

View File

@@ -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'],

View File

@@ -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)