[backport] Fix analytics data send on register through invitation
parent
cd51ec4a29
commit
a6fd467c18
|
@ -533,6 +533,9 @@ InvitationDirective = ($auth, $confirm, $location, $config, $params, $navUrls, $
|
||||||
|
|
||||||
onSuccessSubmitRegister = (response) ->
|
onSuccessSubmitRegister = (response) ->
|
||||||
$analytics.trackEvent("auth", "invitationAccept", "invitation accept with new user", 1)
|
$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}))
|
$location.path($navUrls.resolve("project", {project: $scope.invitation.project_slug}))
|
||||||
$confirm.notify("success", "You've successfully joined this project",
|
$confirm.notify("success", "You've successfully joined this project",
|
||||||
"Welcome to #{_.escape($scope.invitation.project_name)}")
|
"Welcome to #{_.escape($scope.invitation.project_name)}")
|
||||||
|
|
Loading…
Reference in New Issue