mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
Track event on Login Submit Success
Event Category: SignIn/Signup Event Action: Login Submit Success Event Name: the current url
This commit is contained in:
@@ -11,6 +11,8 @@ angular.module('Darkswarm').controller "LoginCtrl", ($scope, $timeout, $location
|
||||
$scope.submit = ->
|
||||
Loading.message = t 'logging_in'
|
||||
$http.post("/user/spree_user/sign_in", {spree_user: $scope.spree_user}).then (response)->
|
||||
if window._paq
|
||||
window._paq.push(['trackEvent', 'Signin/Signup', 'Login Submit Success', $location.absUrl()]);
|
||||
if Redirections.after_login
|
||||
$window.location.href = $window.location.origin + Redirections.after_login
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user