$analyticsProvider.registerSetUserProperties(function (properties) {
if(properties) {
// add custom dimensions and metrics to each hit
var dimsAndMets = dimensionsAndMetrics(properties);
ga('set', dimsAndMets);
}
});
In all other places in the code, ga is enclosed with if(window.ga) {} however, here it is not. This throws an error if ga is not present.
The source code appears to include:
In all other places in the code, ga is enclosed with
if(window.ga) {}
however, here it is not. This throws an error if ga is not present.