diff --git a/node_modules/c9/skip-analytics.js b/node_modules/c9/skip-analytics.js index 6c5fa421..3c75c62d 100644 --- a/node_modules/c9/skip-analytics.js +++ b/node_modules/c9/skip-analytics.js @@ -16,10 +16,10 @@ define(function(require, exports, module) { 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 (!userId) return true; if (hasInternalTestName(name)) return true; if (hasInternalDomain(email)) return true;