Created
March 15, 2017 07:54
-
-
Save aTei/3372775787cbbd24cc00a9d21058018a to your computer and use it in GitHub Desktop.
Devise 4: track Sign Ups inside views (for example, in Google Analytics)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <script> | |
| ... | |
| init google analytics | |
| ... | |
| <% if defined?(notice) && (notice == t('devise.registrations.signed_up')) %> | |
| // send GA event or pageview about Sucessful sign up here, example | |
| ga('send', 'pageview', '/users/sign_up/success'); | |
| <% end %> | |
| </script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment