Commit 1a38a361 by Clinton Blackburn

Disabled client-side tracking if Segment ID is empty

Tracking is now disabled if the Segment application ID is set to an empty string (e.g. the default for local development).

LEARNER-1668
parent f0035e3a
......@@ -12,7 +12,7 @@ define(['backbone', 'underscore'], function(Backbone, _) {
isTracking: function() {
var self = this,
trackId = self.get('segmentApplicationId');
return !_(trackId).isUndefined() && !_(trackId).isNull();
return !_(trackId).isUndefined() && !_(trackId).isNull() && !_(trackId).isEmpty();
}
});
});
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment