Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Send :any_action event on all events.

  • Loading branch information...
commit 4a110dcb431ac2cdadbf4ced48b76bde1bfe96d1 1 parent 70e72bd
Murilo Pereira authored October 04, 2011
10  app/controllers/application_controller.rb
@@ -64,8 +64,14 @@ def check_agreement_to_tos
64 64
 
65 65
   def track_event(event, properties = {})
66 66
     user_id = current_user ? current_user.id : properties.delete(:user_id)
67  
-    Tracking::EventTracker.delay.track_event([event, user_id, request.ip,
68  
-                properties])
  67
+    Tracking::EventTracker.delay.track_event([event,
  68
+                                              user_id,
  69
+                                              request.ip,
  70
+                                              properties])
  71
+    Tracking::EventTracker.delay.track_event([:any_action,
  72
+                                              user_id,
  73
+                                              request.ip,
  74
+                                              properties])
69 75
   end
70 76
 
71 77
   def after_sign_in_path_for(resource)

0 notes on commit 4a110dc

Please sign in to comment.
Something went wrong with that request. Please try again.