AnalyticsRuby = Segment::Analytics.new({ write_key: ENV.fetch("SEGMENT_SERVER_KEY", ""), on_error: Proc.new { |_status, msg| print msg } })