Class: GoogleAnalytics::Events::SetSiteSpeedSampleRate

Inherits:
GoogleAnalytics::Event show all
Defined in:
lib/google-analytics/events/events.rb

Instance Attribute Summary

Attributes inherited from GoogleAnalytics::Event

#name, #params

Instance Method Summary collapse

Constructor Details

#initialize(sample_rate) ⇒ SetSiteSpeedSampleRate

Returns a new instance of SetSiteSpeedSampleRate.

Parameters:

  • sample_rate (Integer)

    the percentage of page views that should be used for page speed metrics - defaults to 1 (aka 1%) if the event is missing.

See Also:



33
34
35
# File 'lib/google-analytics/events/events.rb', line 33

def initialize(sample_rate)
  super('_setSiteSpeedSampleRate', sample_rate)
end