function mockPageView(
  payload = {
    website: 'fcd4c7e3-ed76-439c-9121-3a0f102df126',
    hostname: 'localhost',
    screen: '1680x1050',
    url: '/LOADTESTING',
    referrer: '/REFERRER',
  },
) {
  return {
    type: 'pageview',
    payload,
  };
}
/**
 * Create a new object for each request. Note, we could randomize values here if desired.
 *
 * TODO: Need a better way of passing in websiteId, hostname, URL.
 *
 * @param {object} payload pageview payload same as sent via tracker
 */
Create a new object for each request. Note, we could randomize values here if desired.
TODO: Need a better way of passing in websiteId, hostname, URL.

@param {object} payload pageview payload same as sent via tracker
Create a new object for each request . Note we could randomize values here if desired . TODO : Need a better way of passing in websiteId hostname URL . @param { object } payload pageview payload same as sent via tracker
function mockPageView(
  payload = {
    website: 'fcd4c7e3-ed76-439c-9121-3a0f102df126',
    hostname: 'localhost',
    screen: '1680x1050',
    url: '/LOADTESTING',
    referrer: '/REFERRER',
  },
) {
  return {
    type: 'pageview',
    payload,
  };
}
function mockPageView ( payload = { website : 'fcd4c7e3-ed76-439c-9121-3a0f102df126' , hostname : 'localhost' , screen : '1680x1050' , url : '/LOADTESTING' , referrer : '/REFERRER' , } , ) { return { type : 'pageview' , payload , } ; }
Create a new object for each request.
Create a new object for each request .