Module: Card::Set::All::GoogleAnalytics::HtmlFormat

Extended by:
Card::Set::AbstractFormat
Defined in:
card/tmpsets/set/mod026-card-mod-google_analytics/all/google_analytics.rb,
card/tmpsets/set/mod027-card-mod-google_analytics/all/google_analytics.rb

Instance Method Summary collapse

Instance Method Details

#google_analytics_snippet_varsObject



46
47
48
# File 'card/tmpsets/set/mod026-card-mod-google_analytics/all/google_analytics.rb', line 46

def google_analytics_snippet_vars
  { anonymizeIp: true }
end

#view: google_analytics_snippetObject



42
43
44
# File 'card/tmpsets/set/mod026-card-mod-google_analytics/all/google_analytics.rb', line 42

view :google_analytics_snippet, unknown: true, perms: :none do
  haml :google_analytics_snippet if google_analytics_key
end

#views_in_headObject



38
39
40
# File 'card/tmpsets/set/mod026-card-mod-google_analytics/all/google_analytics.rb', line 38

def views_in_head
  super << :google_analytics_snippet
end