notebook/app/controllers/users_controller.rb
2017-02-21 17:35:31 +00:00

10 lines
274 B
Ruby

class UsersController < ApplicationController
def show
@user = User.find(params[:id])
Mixpanel::Tracker.new(Rails.application.config.mixpanel_token).track(@user.id, 'viewed profile', {
'sharing any content': @user.public_content_count != 0
})
end
end