Skip to content
This repository has been archived by the owner on Jan 25, 2022. It is now read-only.

Commit

Permalink
新規登録: Google Analyticsにコンバージョン専用パスを送信するように変更
Browse files Browse the repository at this point in the history
  • Loading branch information
YOSHIDA Hiroki committed Apr 4, 2014
1 parent 9c24f2d commit cd0077c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions app/controllers/users/registrations_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ class Users::RegistrationsController < Devise::RegistrationsController
protected

def after_sign_up_path_for(resource)
flash[:user_signup] = true
tutorial_path
end
end
6 changes: 6 additions & 0 deletions app/views/layouts/application.html.slim
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,9 @@ html
- if alert
p#alert = alert
== yield

- if flash[:user_signup]
javascript:
try {
_gaq.push([ '_trackPageview', '/user/sign_up_completed' ])
} catch(e) { }

0 comments on commit cd0077c

Please sign in to comment.