'Simple function used to construct analytics data for the OrderItem.
If the Order Item is associated with a course, additional fields will be populated with
course information. If there is a mode associated, the mode data is included in the SKU.
Returns
A dictionary containing analytics data for this OrderItem.'

def analytics_data(self):

    data = super(PaidCourseRegistration, self).analytics_data()
    sku = data['sku']
    if (self.course_id != CourseKeyField.Empty):
        data['name'] = unicode(self.course_id)
        data['category'] = unicode(self.course_id.org)
    if self.mode:
        data['sku'] = ((sku + u'.') + unicode(self.mode))
    return data
