def track_thread_created_event(request, course, thread, followed):
 event_name = _EVENT_NAME_TEMPLATE.format(obj_type='thread', action_name='created')
 event_data = {'commentable_id': thread.commentable_id, 'group_id': thread.get('group_id'), 'thread_type': thread.thread_type, 'title': thread.title, 'anonymous': thread.anonymous, 'anonymous_to_peers': thread.anonymous_to_peers, 'options': {'followed': followed}}
 track_created_event(request, event_name, course, thread, event_data)

def track_thread_created_event ( request , course , thread , followed ) : event_name = _EVENT_NAME_TEMPLATE . format ( obj_type = 'thread' , action_name = 'created' ) event_data = { 'commentable_id' : thread . commentable_id , 'group_id' : thread . get ( 'group_id' ) , 'thread_type' : thread . thread_type , 'title' : thread . title , 'anonymous' : thread . anonymous , 'anonymous_to_peers' : thread . anonymous_to_peers , 'options' : { 'followed' : followed } } track_created_event ( request , event_name , course , thread , event_data )
send analytics event for a newly created thread .