From 81261a0afc0d352bcedf64da5be5504d8bcb2202 Mon Sep 17 00:00:00 2001 From: Marcos Lilljedahl Date: Thu, 15 Feb 2018 15:15:14 -0300 Subject: [PATCH] Update segment data --- www/default/landing.html | 2 +- www/k8s/landing.html | 6 +----- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/www/default/landing.html b/www/default/landing.html index f84a1ad..f44cfbb 100644 --- a/www/default/landing.html +++ b/www/default/landing.html @@ -90,7 +90,7 @@ url: '/users/me' }).then(function(response) { [[ if .SegmentId ]] - analytics.identify(response.data.provider_user_id); + analytics.identify(response.data.provider_user_id, {"email": response.data.email}); [[ end ]] $scope.user = response.data; $scope.loggedIn = true; diff --git a/www/k8s/landing.html b/www/k8s/landing.html index f97bb90..b40f413 100644 --- a/www/k8s/landing.html +++ b/www/k8s/landing.html @@ -90,11 +90,7 @@ url: '/users/me' }).then(function(response) { [[ if .SegmentId ]] - if (response.data.provider == "github") { - analytics.identify({email: response.data.email, name: response.data.name}); - } else if (response.data.provider == "docker") { - analytics.identify(response.data.provider_user_id); - } + analytics.identify(response.data.provider_user_id, {"email": response.data.email}); [[ end ]] $scope.user = response.data; $scope.loggedIn = true;