Sha256: 5f13d13e84ae2434b4d356c66ed5bb2e5662bf03feefd11bde9be540659a01f8

Contents?: true

Size: 984 Bytes

Versions: 17

Compression:

Stored size: 984 Bytes

Contents

class Visit
  include Mongoid::Document

  # associations
  belongs_to :user

  # required
  field :visitor_id, type: <%= @visitor_id_type %>

  # the rest are recommended but optional
  # simply remove the columns you don't want

  # standard
  field :ip, type: String
  field :user_agent, type: String
  field :referrer, type: String
  field :landing_page, type: String

  # traffic source
  field :referring_domain, type: String
  field :search_keyword, type: String

  # technology
  field :browser, type: String
  field :os, type: String
  field :device_type, type: String
  field :screen_height, type: Integer
  field :screen_width, type: Integer

  # location
  field :country, type: String
  field :region, type: String
  field :city, type: String

  # utm parameters
  field :utm_source, type: String
  field :utm_medium, type: String
  field :utm_term, type: String
  field :utm_content, type: String
  field :utm_campaign, type: String

  field :started_at, type: Time
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
ahoy_matey-1.6.1 lib/generators/ahoy/stores/templates/mongoid_visit_model.rb
ahoy_matey-1.6.0 lib/generators/ahoy/stores/templates/mongoid_visit_model.rb
ahoy_matey-1.5.5 lib/generators/ahoy/stores/templates/mongoid_visit_model.rb
ahoy_matey-1.5.4 lib/generators/ahoy/stores/templates/mongoid_visit_model.rb
ahoy_matey-1.5.3 lib/generators/ahoy/stores/templates/mongoid_visit_model.rb
ahoy_matey-1.5.2 lib/generators/ahoy/stores/templates/mongoid_visit_model.rb
ahoy_matey-1.5.1 lib/generators/ahoy/stores/templates/mongoid_visit_model.rb
ahoy_matey-1.5.0 lib/generators/ahoy/stores/templates/mongoid_visit_model.rb
ahoy_matey-1.4.2 lib/generators/ahoy/stores/templates/mongoid_visit_model.rb
ahoy_matey-1.4.1 lib/generators/ahoy/stores/templates/mongoid_visit_model.rb
ahoy_matey-1.4.0 lib/generators/ahoy/stores/templates/mongoid_visit_model.rb
ahoy_matey-1.3.1 lib/generators/ahoy/stores/templates/mongoid_visit_model.rb
ahoy_matey-1.3.0 lib/generators/ahoy/stores/templates/mongoid_visit_model.rb
ahoy_matey-1.2.2 lib/generators/ahoy/stores/templates/mongoid_visit_model.rb
ahoy_matey-1.2.1 lib/generators/ahoy/stores/templates/mongoid_visit_model.rb
ahoy_matey-1.2.0 lib/generators/ahoy/stores/templates/mongoid_visit_model.rb
ahoy_matey-1.1.1 lib/generators/ahoy/stores/templates/mongoid_visit_model.rb