node_modules/@analytics/google-analytics/lib/analytics-plugin-ga.browser.es.js
/**
 * Identify a visitor by Id
 * @param  {string} id - unique visitor ID
 */
Identify a visitor by Id
@param  {string} id - unique visitor ID
Identify a visitor by Id @param { string } id - unique visitor ID
function identifyVisitor$1(id) {
  var traits = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  var conf = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  if (gaNotLoaded()) return;
  var _getInstanceDetails3 = getInstanceDetails(conf),
      instancePrefix = _getInstanceDetails3.instancePrefix;
  if (id) ga("".concat(instancePrefix, "set"), 'userId', id);
  if (Object.keys(traits).length) {
    var custom = formatObjectIntoDimensions$1(traits, conf);
    ga("".concat(instancePrefix, "set"), custom);
  }
}
function identifyVisitor$1 ( id ) { var traits = arguments . length > 1 && arguments [ 1 ] !== undefined ? arguments [ 1 ] : { } ; var conf = arguments . length > 2 && arguments [ 2 ] !== undefined ? arguments [ 2 ] : { } ; if ( gaNotLoaded ( ) ) return ; var _getInstanceDetails3 = getInstanceDetails ( conf ) , instancePrefix = _getInstanceDetails3 . instancePrefix ; if ( id ) ga ( "" . concat ( instancePrefix , "set" ) , 'userId' , id ) ; if ( Object . keys ( traits ) . length ) { var custom = formatObjectIntoDimensions$1 ( traits , conf ) ; ga ( "" . concat ( instancePrefix , "set" ) , custom ) ; } }
Identify a visitor by Id
 @param  {string} id - unique visitor ID
Identify a visitor by Id @param { string } id - unique visitor ID