lib/mixpanel/event.rb in mixpanel-4.0.4 vs lib/mixpanel/event.rb in mixpanel-4.0.5
- old
+ new
@@ -33,10 +33,11 @@
protected
def track_event(event, properties, options, default_url)
default = {:url => default_url, :async => @async, :api_key => @api_key}
- url = build_url(event, properties, default.merge(options))
+ options = default.merge(options)
+ url = build_url(event, properties, options)
parse_response request(url, options[:async])
end
def track_properties(properties, include_token=true)
default = {:time => Time.now, :ip => ip}