Module: Workarea::Listrak::Analytics

Defined in:
lib/workarea/listrak/analytics.rb,
app/helpers/workarea/listrak/analytics/helper.rb

Defined Under Namespace

Modules: Helper

Class Method Summary collapse

Class Method Details

.configObject

Shorthand for analytics module specific configuration.



5
6
7
# File 'lib/workarea/listrak/analytics.rb', line 5

def self.config
  Workarea.config.listrak.analytics
end

.javascript_configObject



9
10
11
12
13
14
# File 'lib/workarea/listrak/analytics.rb', line 9

def self.javascript_config
  {
    merchantId: config[:merchant_id],
    emailIds: config[:email_capture_ids]
  }.compact.to_json
end