diff --git a/lib/analytical/modules/mixpanel.rb b/lib/analytical/modules/mixpanel.rb index e4c1906..f14d16f 100644 --- a/lib/analytical/modules/mixpanel.rb +++ b/lib/analytical/modules/mixpanel.rb @@ -15,14 +15,14 @@ def init_javascript(location) HTML @@ -32,10 +32,13 @@ def init_javascript(location) def identify(*args) # id, options <<-JS.gsub(/^ {10}/, '') - mixpanel.identify(id); - if (options && options.name) { - mixpanel.name_tag(options.name); + if (options) { + mixpanel.people.set(options); + if (options.name) { + mixpanel.name_tag(options.name); + } } + mixpanel.identify(id); JS end