diff --git a/www/default/landing.html b/www/default/landing.html index f4ff0d1..f84a1ad 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.email); + analytics.identify(response.data.provider_user_id); [[ end ]] $scope.user = response.data; $scope.loggedIn = true; diff --git a/www/k8s/landing.html b/www/k8s/landing.html index d7a8ff0..f97bb90 100644 --- a/www/k8s/landing.html +++ b/www/k8s/landing.html @@ -90,7 +90,11 @@ url: '/users/me' }).then(function(response) { [[ if .SegmentId ]] - analytics.identify(response.data.email); + 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); + } [[ end ]] $scope.user = response.data; $scope.loggedIn = true;