www/category-category-module-es5.js
/**
     * Creates global gtag function or wraps existing one if found.
     * This wrapped function attaches Firebase instance ID (FID) to gtag 'config' and
     * 'event' calls that belong to the GAID associated with this Firebase instance.
     *
     * @param initializedIdPromisesMap Map of gaId to initialization promises.
     * @param dataLayerName Name of global GA datalayer array.
     * @param gtagFunctionName Name of global gtag function ("gtag" if not user-specified)
     */
Creates global gtag function or wraps existing one if found.
This wrapped function attaches Firebase instance ID (FID) to gtag 'config' and
'event' calls that belong to the GAID associated with this Firebase instance.

@param initializedIdPromisesMap Map of gaId to initialization promises.
@param dataLayerName Name of global GA datalayer array.
@param gtagFunctionName Name of global gtag function ("gtag" if not user-specified)
Creates global gtag function or wraps existing one if found . This wrapped function attaches Firebase instance ID ( FID ) to gtag ' config ' and ' event ' calls that belong to the GAID associated with this Firebase instance . @param initializedIdPromisesMap Map of gaId to initialization promises . @param dataLayerName Name of global GA datalayer array . @param gtagFunctionName Name of global gtag function ( " gtag " if not user - specified )
function wrapOrCreateGtag(initializedIdPromisesMap, dataLayerName, gtagFunctionName) {
      var gtagCore = function gtagCore() {
        var _args = [];
        for (var _i = 0; _i < arguments.length; _i++) {
          _args[_i] = arguments[_i];
        } 
        window[dataLayerName].push(arguments);
      }; 
      if (window[gtagFunctionName] && typeof window[gtagFunctionName] === 'function') {
        gtagCore = window[gtagFunctionName];
      }
      window[gtagFunctionName] = wrapGtag(gtagCore, initializedIdPromisesMap);
      return {
        gtagCore: gtagCore,
        wrappedGtag: window[gtagFunctionName]
      };
    }
function wrapOrCreateGtag ( initializedIdPromisesMap , dataLayerName , gtagFunctionName ) { var gtagCore = function gtagCore ( ) { var _args = [ ] ; for ( var _i = 0 ; _i < arguments . length ; _i ++ ) { _args [ _i ] = arguments [ _i ] ; } window [ dataLayerName ] . push ( arguments ) ; } ; if ( window [ gtagFunctionName ] && typeof window [ gtagFunctionName ] === 'function' ) { gtagCore = window [ gtagFunctionName ] ; } window [ gtagFunctionName ] = wrapGtag ( gtagCore , initializedIdPromisesMap ) ; return { gtagCore : gtagCore , wrappedGtag : window [ gtagFunctionName ] } ; }
Creates global gtag function or wraps existing one if found.
Creates global gtag function or wraps existing one if found .
// Create a basic core gtag function // Must push IArguments object, not an array. // Replace it with existing one if found // @ts-ignore