Class: PiwikAnalyticsWithUser::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/piwik_analytics_with_user/configuration.rb

Instance Method Summary collapse

Instance Method Details

#disabled?Boolean

Whether or not to disable Piwik. Defaults to false.

Returns:

  • (Boolean)


33
34
35
# File 'lib/piwik_analytics_with_user/configuration.rb', line 33

def disabled?
  @disabled ||= (user_configuration_from_key('disabled') || false)
end

#id_siteObject

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

#urlObject

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

Returns:

  • (Boolean)


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