Merge pull request +12650 from c9/signup-analytics

Signup analytics
pull/268/head
Matthijs van Henten 2016-03-08 17:05:25 +01:00
commit 518aa8732e
1 zmienionych plików z 7 dodań i 7 usunięć

4
node_modules/c9/skip-analytics.js wygenerowano vendored
Wyświetl plik

@ -12,13 +12,13 @@ define(function(require, exports, module) {
function skipAnalytics(userId, name, email, allowUnauthorized) {
if (!userId) return true; // users without an id should never reach the Segment library
if (typeof userId == "object") {
var user = userId;
return skipAnalytics(user.id, user.name || user.username, user.email, name); // make it backwards compatible for the client
}
if (!userId) return true; // users without an id should never reach the Segment library
if (!allowUnauthorized && userId === -1) return true;
if (hasInternalTestName(name)) return true;