'Add a user\'s tags to the tracking event context.'

def process_request(self, request):

    match = COURSE_REGEX.match(request.build_absolute_uri())
    course_id = None
    if match:
        course_id = match.group('course_id')
        try:
            course_key = CourseKey.from_string(course_id)
        except InvalidKeyError:
            course_id = None
            course_key = None
    context = {}
    if course_id:
        context['course_id'] = course_id
        if request.user.is_authenticated():
            context['course_user_tags'] = dict(UserCourseTag.objects.filter(user=request.user.pk, course_id=course_key).values_list('key', 'value'))
        else:
            context['course_user_tags'] = {}
    tracker.get_tracker().enter_context(self.CONTEXT_NAME, context)
