mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-12 23:27:48 +00:00
Track event on Signup Submit Success
Event Category: SignIn/Signup Event Action: Signup Submit Success Event Name: the current url
This commit is contained in:
@@ -11,5 +11,7 @@ angular.module('Darkswarm').controller "SignupCtrl", ($scope, $http, $window, $l
|
||||
$http.post("/user/spree_user", {spree_user: $scope.spree_user, return_url: $location.absUrl()}).then (response)->
|
||||
$scope.errors = {email: null, password: null}
|
||||
$scope.messages = t('devise.user_registrations.spree_user.signed_up_but_unconfirmed')
|
||||
if window._paq
|
||||
window._paq.push(['trackEvent', 'Signin/Signup', 'Signup Submit Success', $location.absUrl()]);
|
||||
.catch (response) ->
|
||||
$scope.errors = response.data
|
||||
|
||||
Reference in New Issue
Block a user