Module: PiwikAnalytics::Helpers
- Defined in:
- lib/piwik_analytics/helpers.rb
Instance Method Summary collapse
Instance Method Details
#piwik_tracking_tag ⇒ Object
3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
# File 'lib/piwik_analytics/helpers.rb', line 3 def piwik_tracking_tag config = PiwikAnalytics.configuration return if config.disabled? if config.use_async? file = "piwik_analytics/piwik_tracking_tag_async" else file = "piwik_analytics/piwik_tracking_tag" end render({ file: file, locals: {url: config.url, id_site: config.id_site, protocol: config.protocol} }) end |