I have code straight from the google analytics docs. For some reason get an error, only sometimes undefined is not an object (evaluating 'tracker.get')
what does this mean? and what is the difference between this type of error and an error that says property 'get' does not exist on undefined
?
private hasDefaultTracker(): boolean {
var clientId;
window.ga(function(tracker) {
clientId = tracker.get('clientId');
});
return clientId != null;
}