Class: AnalyticsImplementationController

Inherits:
ApplicationController show all
Defined in:
lib/controllers/analytics_implementation_controller.rb

Constant Summary

Constants included from AnalyticsInstrumentation

AnalyticsInstrumentation::VERSION

Instance Method Summary collapse

Methods included from AnalyticsInstrumentation

#analyticsAliasUser, #analyticsApplyOriginatingPage, #analyticsCheckSessionStart, #analyticsID, #analyticsLogPageView, #analyticsSetPerson, #analyticsStoreOriginatingPage, #analyticsSuperProperties, #analyticsTrackEvent, configure, included, #raw_analytics_id

Methods included from AnalyticsAttribution

#add_attribution

Instance Method Details

#analytics_eventObject

Exposes an endpoint to which one can ajax handwritten events.



4
5
6
7
8
9
# File 'lib/controllers/analytics_implementation_controller.rb', line 4

def analytics_event
  name = params[:name]
  properties = params[:properties]
  analyticsTrackEvent(name, properties)
  render text: ""
end