add localytics to class