class Rox::Core::Analytics

Analytics based on segment client segment.com/docs/connections/sources/catalog/libraries/server/ruby/

Attributes

client[R]

Public Class Methods

new(key) click to toggle source
# File lib/rox/core/analytics.rb, line 10
def initialize(key)
  @client = Segment::Analytics.new({
                                     write_key: key,
                                     on_error: proc { |_status, msg| print msg }
                                   })
end