Class: Staccato::Measurement::Promotion
- Inherits:
-
Object
- Object
- Staccato::Measurement::Promotion
- Includes:
- Staccato::Measurable
- Defined in:
- lib/staccato/measurement/promotion.rb
Overview
Measurement class for promotion impressions/clicks
Constant Summary collapse
- FIELDS =
Promotion measurement options fields
{ index: nil, id: 'id', # text name: 'nm', # text creative: 'cr', # text position: 'ps' # text }.freeze
Class Method Summary collapse
-
.lookup_key ⇒ Symbol
lookup key for use in Hit#add_measurement.
Instance Method Summary collapse
-
#prefix ⇒ String
promotion prefix.
Methods included from Staccato::Measurable
#add_custom_dimension, #add_custom_metric, #custom_dimensions, #custom_fields_allowed?, #custom_metrics, #fields, included, #initialize, #params
Class Method Details
.lookup_key ⇒ Symbol
lookup key for use in Hit#add_measurement
7 8 9 |
# File 'lib/staccato/measurement/promotion.rb', line 7 def self.lookup_key :promotion end |
Instance Method Details
#prefix ⇒ String
promotion prefix
13 14 15 |
# File 'lib/staccato/measurement/promotion.rb', line 13 def prefix 'promo'+index.to_s end |