Skip to content
Browse files

Reuse event tracking call.

  • Loading branch information...
1 parent 3a16bbf commit 69ed937aed5e730ff8dcf66f11b2fa12f3ba92e1 @mpereira mpereira committed
Showing with 1 addition and 3 deletions.
  1. +1 −3 app/controllers/users_controller.rb
View
4 app/controllers/users_controller.rb
@@ -153,9 +153,7 @@ def create
if @user.save
if @url_invitation = UrlInvitation.find_by_ref(params[:ref])
- track_event(:sign_up,
- :invitee_id => @user.id,
- :inviter_id => @url_invitation.inviter.id)
+ tracking_properties[:invited_by] = @url_invitation.inviter.id
@url_invitation.add_invitee(@user)
end

0 comments on commit 69ed937

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