Class: SimpleAnalyticsRails::JavascriptScript
- Inherits:
-
Object
- Object
- SimpleAnalyticsRails::JavascriptScript
- Defined in:
- lib/simple_analytics_rails/javascript_script.rb
Overview
This outputs the HTML script with the configuration option added to the <script> tag.
Instance Method Summary collapse
Instance Method Details
#body_html ⇒ Object
11 12 13 |
# File 'lib/simple_analytics_rails/javascript_script.rb', line 11 def body_html '<noscript><img src="https://' + configuration.noscript_domain + '/noscript.gif" alt="" referrerpolicy="no-referrer-when-downgrade" /></noscript>' end |
#head_html ⇒ Object
4 5 6 7 8 9 |
# File 'lib/simple_analytics_rails/javascript_script.rb', line 4 def head_html [ sa_event_script, script_tag ].join end |