class Roll::Amp::Html::GoogleAnalyticsTag

The amp-analytics tag for Google Analytics.

Public Class Methods

new(content) click to toggle source

Initializes new instance of the analytics tag. @param content [String] the content of the tag.

Calls superclass method Roll::Amp::Html::AnalyticsTag::new
# File lib/roll/amp/html/google_analytics_tag.rb, line 8
def initialize(content)
  super(GoogleAnalyticsTag.type, content)
end
type() click to toggle source
# File lib/roll/amp/html/google_analytics_tag.rb, line 12
def self.type
  'googleanalytics'.freeze
end