Class: GoogleAnalytics::CustomVar
- Inherits:
-
Struct
- Object
- Struct
- GoogleAnalytics::CustomVar
- Defined in:
- lib/tracking/custom_var.rb
Overview
A Struct that mirrors the structure of a custom var defined in Google Analytics see developers.google.com/analytics/devguides/collection/gajs/gaTrackingCustomVariables
Constant Summary collapse
- VISITOR_LEVEL =
1
- SESSION_LEVEL =
2
- PAGE_LEVEL =
3
Instance Attribute Summary collapse
-
#index ⇒ Object
Returns the value of attribute index.
-
#name ⇒ Object
Returns the value of attribute name.
-
#opt_scope ⇒ Object
Returns the value of attribute opt_scope.
-
#value ⇒ Object
Returns the value of attribute value.
Instance Method Summary collapse
Instance Attribute Details
#index ⇒ Object
Returns the value of attribute index
5 6 7 |
# File 'lib/tracking/custom_var.rb', line 5 def index @index end |
#name ⇒ Object
Returns the value of attribute name
5 6 7 |
# File 'lib/tracking/custom_var.rb', line 5 def name @name end |
#opt_scope ⇒ Object
Returns the value of attribute opt_scope
5 6 7 |
# File 'lib/tracking/custom_var.rb', line 5 def opt_scope @opt_scope end |
#value ⇒ Object
Returns the value of attribute value
5 6 7 |
# File 'lib/tracking/custom_var.rb', line 5 def value @value end |
Instance Method Details
#write ⇒ Object
10 11 12 |
# File 'lib/tracking/custom_var.rb', line 10 def write ['_setCustomVar', self.index, self.name, self.value,self.opt_scope].to_json end |