lib/mixpanel/person.rb in mixpanel-3.0.1 vs lib/mixpanel/person.rb in mixpanel-3.0.2
- old
+ new
@@ -1,7 +1,7 @@
module Mixpanel::Person
- PERSON_PROPERTIES = %w{email created first_name last_name last_login username country_code}
+ PERSON_PROPERTIES = %w{email created first_name last_name name last_login username country_code}
PERSON_URL = 'http://api.mixpanel.com/engage/'
def set(distinct_id, properties={}, options={})
engage :set, distinct_id, properties, options
end
@@ -22,9 +22,13 @@
append 'register', properties_hash(properties, PERSON_PROPERTIES)
end
def append_identify(distinct_id)
append 'identify', distinct_id
+ end
+
+ def append_people_identify(distinct_id)
+ append 'people.identify', distinct_id
end
protected
def engage(action, distinct_id, properties, options)
\ No newline at end of file