Class: Roll::Amp::Script::AnalyticsScriptTag
- Inherits:
-
IncludeScriptTag
- Object
- IncludeScriptTag
- Roll::Amp::Script::AnalyticsScriptTag
- Defined in:
- lib/roll/amp/script/analytics_script_tag.rb
Overview
The script tag that enables analytics on AMP pages.
Class Method Summary collapse
-
.src ⇒ String
Link to the script.
Instance Method Summary collapse
-
#initialize ⇒ AnalyticsScriptTag
constructor
Initializes analytics script tag instance.
Methods inherited from IncludeScriptTag
Constructor Details
#initialize ⇒ AnalyticsScriptTag
Initializes analytics script tag instance.
7 8 9 |
# File 'lib/roll/amp/script/analytics_script_tag.rb', line 7 def initialize super(AnalyticsScriptTag.src, 'amp-analytics') end |
Class Method Details
.src ⇒ String
Returns Link to the script.
12 13 14 |
# File 'lib/roll/amp/script/analytics_script_tag.rb', line 12 def self.src 'https://cdn.ampproject.org/v0/amp-analytics-0.1.js'.freeze end |