Class: GoogleAnalytics::Events::AnonymizeIp
- Inherits:
-
GoogleAnalytics::Event
- Object
- GoogleAnalytics::Event
- GoogleAnalytics::Events::AnonymizeIp
- Defined in:
- lib/google-analytics/events/events.rb
Overview
Anonymize the visitor IP address. This seems to be mandatory for European websites and actively enforced for German ones.
See the following comment by Roland Moriz for more information: https://github.com/bgarret/google-analytics-rails/pull/6#issuecomment-5946066
JavaScript equivalent:
ga('set', 'anonymizeIp', true);
Instance Attribute Summary
Attributes inherited from GoogleAnalytics::Event
Instance Method Summary collapse
-
#initialize ⇒ AnonymizeIp
constructor
A new instance of AnonymizeIp.
Methods inherited from GoogleAnalytics::Event
Constructor Details
#initialize ⇒ AnonymizeIp
Returns a new instance of AnonymizeIp.
160 161 162 |
# File 'lib/google-analytics/events/events.rb', line 160 def initialize super('set', 'anonymizeIp', true) end |