Fix analytics data send on register through invitation

stable
Jesús Espino 2017-10-10 14:41:24 +02:00
parent d103f8182b
commit 98cb4eff4a
1 changed files with 3 additions and 0 deletions

View File

@ -533,6 +533,9 @@ InvitationDirective = ($auth, $confirm, $location, $config, $params, $navUrls, $
onSuccessSubmitRegister = (response) ->
$analytics.trackEvent("auth", "invitationAccept", "invitation accept with new user", 1)
$analytics.trackEvent("auth", "register", "user registration", 1)
$analytics.addEcStep("register", null, null)
$location.path($navUrls.resolve("project", {project: $scope.invitation.project_slug}))
$confirm.notify("success", "You've successfully joined this project",
"Welcome to #{_.escape($scope.invitation.project_name)}")