www/category-category-module-es5.js
/**
     * Set all other user properties other than user_id and screen_name.
     *
     * @param gtagFunction Wrapped gtag function that waits for fid to be set before sending an event
     * @param properties Map of user properties to set
     */
Set all other user properties other than user_id and screen_name.

@param gtagFunction Wrapped gtag function that waits for fid to be set before sending an event
@param properties Map of user properties to set
Set all other user properties other than user_id and screen_name . @param gtagFunction Wrapped gtag function that waits for fid to be set before sending an event @param properties Map of user properties to set
function _setUserProperties(gtagFunction, analyticsId, properties, options) {
      if (options && options.global) {
        var flatProperties = {};
        for (var _i = 0, _a = Object.keys(properties); _i < _a.length; _i++) {
          var key = _a[_i]; 
          flatProperties["user_properties." + key] = properties[key];
        }
        gtagFunction(GtagCommand.SET, flatProperties);
      } else {
        gtagFunction(GtagCommand.CONFIG, analyticsId, {
          update: true,
          'user_properties': properties
        });
      }
    }
function _setUserProperties ( gtagFunction , analyticsId , properties , options ) { if ( options && options . global ) { var flatProperties = { } ; for ( var _i = 0 , _a = Object . keys ( properties ) ; _i < _a . length ; _i ++ ) { var key = _a [ _i ] ; flatProperties [ "user_properties." + key ] = properties [ key ] ; } gtagFunction ( GtagCommand . SET , flatProperties ) ; } else { gtagFunction ( GtagCommand . CONFIG , analyticsId , { update : true , 'user_properties' : properties } ) ; } }
Set all other user properties other than user_id and screen_name.
Set all other user properties other than user_id and screen_name .
// use dot notation for merge behavior in gtag.js