function trackEvent(events, options) {
    var querystringParams = options.querystringParams;
    if (!options.test && sitecore_jss_1.isServer()) {
        // do nothing for SSR, only track events when a browser requests it
        return Promise.resolve();
    }
    if (!Array.isArray(events)) {
        events = [events];
    }
    var fetchUrl = resolveTrackingUrl(options);
    return fetchData(fetchUrl, events, options.fetcher, querystringParams);
}
/**
 * Makes a request to Sitecore Layout Service for the specified route item path.
 * @param {Array<EventInstance | GoalInstance | OutcomeInstance | CampaignInstance | PageViewInstance>} events
 * @param {TrackingRequestOptions} options
 * @returns {Promise<void>} void
 */
Makes a request to Sitecore Layout Service for the specified route item path.
@param {Array} events
@param {TrackingRequestOptions} options
@returns {Promise} void
Makes a request to Sitecore Layout Service for the specified route item path . @param { Array } events @param { TrackingRequestOptions } options @returns { Promise } void
function trackEvent(events, options) {
    var querystringParams = options.querystringParams;
    if (!options.test && sitecore_jss_1.isServer()) {
        return Promise.resolve();
    }
    if (!Array.isArray(events)) {
        events = [events];
    }
    var fetchUrl = resolveTrackingUrl(options);
    return fetchData(fetchUrl, events, options.fetcher, querystringParams);
}
function trackEvent ( events , options ) { var querystringParams = options . querystringParams ; if ( ! options . test && sitecore_jss_1 . isServer ( ) ) { return Promise . resolve ( ) ; } if ( ! Array . isArray ( events ) ) { events = [ events ] ; } var fetchUrl = resolveTrackingUrl ( options ) ; return fetchData ( fetchUrl , events , options . fetcher , querystringParams ) ; }
Makes a request to Sitecore Layout Service for the specified route item path.
Makes a request to Sitecore Layout Service for the specified route item path .
// do nothing for SSR, only track events when a browser requests it