Module: UniversalTrackManager

Defined in:
lib/universal_track_manager.rb,
lib/version.rb,
lib/generators/universal_track_manager/install_generator.rb

Overview

primary module for UTM. note this file is included in the specs

Defined Under Namespace

Classes: Browser, Campaign, InstallGenerator, Settings, Visit

Constant Summary collapse

VERSION =
"0.7.6"

Class Method Summary collapse

Class Method Details

.campaign_column_namesObject



32
33
34
# File 'lib/universal_track_manager.rb', line 32

def self.campaign_column_names
  @campaign_column_names ||= @_settings.campaign_columns.split(',')
end

.campaign_column_symbolsObject



36
37
38
# File 'lib/universal_track_manager.rb', line 36

def self.campaign_column_symbols
  @campaign_column_symbols ||= @_settings.campaign_columns.split(',').map{|c| c.to_sym}
end

.configure(&block) ⇒ Object



10
11
12
13
14
# File 'lib/universal_track_manager.rb', line 10

def self.configure(&block)
  @_settings =  Settings.new

  block.call(@_settings)
end

.track_http_referrer?Boolean

Returns:

  • (Boolean)


28
29
30
# File 'lib/universal_track_manager.rb', line 28

def self.track_http_referrer?
  @_settings.track_http_referrer
end

.track_ips?Boolean

Returns:

  • (Boolean)


16
17
18
# File 'lib/universal_track_manager.rb', line 16

def self.track_ips?
  @_settings.track_ips
end

.track_user_agent?Boolean

Returns:

  • (Boolean)


24
25
26
# File 'lib/universal_track_manager.rb', line 24

def self.track_user_agent?
  @_settings.track_user_agent
end

.track_utms?Boolean

Returns:

  • (Boolean)


20
21
22
# File 'lib/universal_track_manager.rb', line 20

def self.track_utms?
  @_settings.track_utms
end