Class: Roll::Amp::Html::GoogleAnalyticsTag

Inherits:
AnalyticsTag show all
Defined in:
lib/roll/amp/html/google_analytics_tag.rb

Overview

The amp-analytics tag for Google Analytics.

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from AnalyticsTag

#to_html

Constructor Details

#initialize(content) ⇒ GoogleAnalyticsTag

Initializes new instance of the analytics tag.

Parameters:

  • content (String)

    the content of the tag.



8
9
10
# File 'lib/roll/amp/html/google_analytics_tag.rb', line 8

def initialize(content)
  super(GoogleAnalyticsTag.type, content)
end

Class Method Details

.typeObject



12
13
14
# File 'lib/roll/amp/html/google_analytics_tag.rb', line 12

def self.type
  'googleanalytics'.freeze
end