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:
Jean-Baptiste Bellet
2021-10-06 10:45:10 +02:00
parent fff54d2aad
commit 969a7ef2d0

View File

@@ -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