Class: AnalyticsImplementationController

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

Instance Method Summary collapse

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