class Ahoy::Store < Ahoy::DatabaseStore
  def track_visit(data)
    data[:id] = UUIDTools::UUID.random_create
    super(data)
  end

  def track_event(data)
    data[:id] = UUIDTools::UUID.random_create
    super(data)
  end
end

Ahoy.api = true
Ahoy.server_side_visits = :when_needed
Ahoy.geocode = Rails.env.production? ? :async : false
Ahoy.visit_duration = 30.minutes
Ahoy.mask_ips = true

AhoyEmail.api = true
AhoyEmail.default_options[:open] = true
AhoyEmail.default_options[:utm_params] = true
AhoyEmail.default_options[:message] = true
