Class: PiwikAnalyticsWithUser::Configuration
- Inherits:
-
Object
- Object
- PiwikAnalyticsWithUser::Configuration
- Defined in:
- lib/piwik_analytics_with_user/configuration.rb
Instance Method Summary collapse
-
#disabled? ⇒ Boolean
Whether or not to disable Piwik.
-
#id_site ⇒ Object
The ID of the tracked website Defaults to 1.
-
#url ⇒ Object
The url of the Piwik instance Defaults to localhost.
-
#use_async? ⇒ Boolean
Whether or not to use the async tracking Defaults to false.
Instance Method Details
#disabled? ⇒ Boolean
Whether or not to disable Piwik. Defaults to false.
33 34 35 |
# File 'lib/piwik_analytics_with_user/configuration.rb', line 33 def disabled? @disabled ||= (user_configuration_from_key('disabled') || false) end |
#id_site ⇒ Object
The ID of the tracked website Defaults to 1
17 18 19 |
# File 'lib/piwik_analytics_with_user/configuration.rb', line 17 def id_site @id_site ||= (user_configuration_from_key('id_site') || 1) end |
#url ⇒ Object
The url of the Piwik instance Defaults to localhost
9 10 11 |
# File 'lib/piwik_analytics_with_user/configuration.rb', line 9 def url @url ||= (user_configuration_from_key('url') || 'localhost') end |
#use_async? ⇒ Boolean
Whether or not to use the async tracking Defaults to false
25 26 27 |
# File 'lib/piwik_analytics_with_user/configuration.rb', line 25 def use_async? @use_async ||= (user_configuration_from_key('use_async') || false) end |