Commit 8ecb55ed6d1d95da4ce3e732e13cdb56e4ca03ce
1 parent
5cccd79845
Exists in
master
and in
1 other branch
update
Showing
1 changed file
with
2 additions
and
2 deletions
Show diff stats
script.js
... | ... | @@ -992,7 +992,7 @@ |
992 | 992 | |
993 | 993 | }); |
994 | 994 | |
995 | - scotchApp.controller('verifyController', function($scope, $http, $location, $route,BASE_URL) { | |
995 | + scotchApp.controller('verifyController', function($scope, $http, $location, $route, BASE_URL, Analytics) { | |
996 | 996 | |
997 | 997 | $scope.pendingPaymentId = $route.current.params.id |
998 | 998 | $http({ |
... | ... | @@ -1071,7 +1071,6 @@ |
1071 | 1071 | $scope.paymentResponse.currency = $scope.searchResult.currency; |
1072 | 1072 | $scope.paymentResponse.status = $scope.searchResult.status; |
1073 | 1073 | $scope.paymentResponse.applicantId = $scope.searchResult.applicantId; |
1074 | - Analytics.trackEvent('payment','Successfully Done',$scope.data.email,$scope.paymentResponse.amount); | |
1075 | 1074 | console.log("$scope.paymentResponse", $scope.paymentResponse) |
1076 | 1075 | $http({ |
1077 | 1076 | method: 'PUT', |
... | ... | @@ -1085,6 +1084,7 @@ |
1085 | 1084 | // } |
1086 | 1085 | console.log("finalsearchResult",searchResult) |
1087 | 1086 | $location.path("/confirmation") |
1087 | + Analytics.trackEvent('payment','Successfully Done',$scope.data.email,$scope.paymentResponse.amount); | |
1088 | 1088 | }, function myError(error) { |
1089 | 1089 | |
1090 | 1090 | }); | ... | ... |