Class: Googlets::Analytics

Inherits:
Googlet
  • Object
show all
Defined in:
lib/googlets/analytics.rb

Defined Under Namespace

Modules: ViewHelpers

Constant Summary collapse

@@analytics_web_property_id =
nil

Class Method Summary collapse

Methods inherited from Googlet

config_file, parse_config, read_config

Class Method Details

.enabled?Boolean

Returns:

  • (Boolean)


7
8
9
# File 'lib/googlets/analytics.rb', line 7

def self.enabled?
  !analytics_web_property_id.blank?
end