fix: rename events and remove from_email property [VAN-1060] (#30911)

This commit is contained in:
Syed Sajjad Hussain Shah
2022-08-29 14:59:13 +05:00
committed by GitHub
parent 1b509f3a81
commit 45d62226c1
2 changed files with 2 additions and 3 deletions

View File

@@ -102,13 +102,12 @@ def user_track(request):
# Remove it after the experiment has been paused.
if (
name == 'edx.course.home.resume_course.clicked' and
data.get('from_email') and
data.get('event_type') == 'start' and
request.user
):
optimizely_client = OptimizelyClient.get_optimizely_client()
if optimizely_client:
optimizely_client.track('user_start_course_click', str(request.user.id))
optimizely_client.track('course_started', str(request.user.id))
return HttpResponse('success')