From a6fd467c18b469aee6c3396150498e75ee77a761 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jes=C3=BAs=20Espino?= Date: Tue, 10 Oct 2017 14:41:24 +0200 Subject: [PATCH] [backport] Fix analytics data send on register through invitation --- app/coffee/modules/auth.coffee | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/coffee/modules/auth.coffee b/app/coffee/modules/auth.coffee index 031443c1..2d55330e 100644 --- a/app/coffee/modules/auth.coffee +++ b/app/coffee/modules/auth.coffee @@ -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)}")