Add support for manual tracking of a Piwik goal on signup
This commit is contained in:
parent
425878bf3e
commit
dc4cc8d219
3 changed files with 5 additions and 0 deletions
|
@ -128,6 +128,7 @@ class UserController < ApplicationController
|
|||
@user.openid_url = nil if @user.openid_url and @user.openid_url.empty?
|
||||
|
||||
if @user.save
|
||||
flash[:piwik_goal] = PIWIK_SIGNUP_GOAL if defined?(PIWIK_SIGNUP_GOAL)
|
||||
flash[:notice] = t 'user.new.flash create success message', :email => @user.email
|
||||
Notifier.deliver_signup_confirm(@user, @user.tokens.create(:referer => session.delete(:referer)))
|
||||
session[:token] = @user.tokens.create.token
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue