Client-side metrics with traffic2

Insight Recommendations

Dashboard

Editor

OLS, OLA, ...

The goal...

Traffic2

Custom Props

// fetchDiscoverRecommendations failed event props
{
  insight_event_metrics_api_apiName: 'fetchDiscoverRecommendations',
  insight_event_metrics_api_app: 'discover',
  insight_event_metrics_api_duration: '80',
  insight_event_metrics_api_event: 'api_fail',
  insight_event_metrics_api_message: 'Unauthorized',
  insight_event_metrics_api_size: '66',
  insight_event_metrics_api_status: '401',
  insight_event_metrics_api_url:
    'https://rad-api.dev-godaddy.com/v4/cards/discover?entities=subscription&visitorType=radcaller&visitorId=cf9cde35-4e52-5344-9799-ccfde21a865e&visitId=79b4cfde-966b-5df8-8d5c-c4f609b4ba61'
}

// getFeatureFlags faiiled event props
{
  insight_event_metrics_api_apiName: 'getFeatureFlags',
  insight_event_metrics_api_app: 'discover',
  insight_event_metrics_api_duration: '66',
  insight_event_metrics_api_event: 'api_fail',
  insight_event_metrics_api_message: 'Unable to authenticate user',
  insight_event_metrics_api_size: '1772',
  insight_event_metrics_api_status: '401',
  insight_event_metrics_api_url: 'https://websites.api.dev-godaddy.com/v2/config/insight'
}

// getHivemindSplits failed event props
{
  insight_event_metrics_api_apiName: 'getHivemindSplits',
  insight_event_metrics_api_app: 'discover',
  insight_event_metrics_api_duration: '10',
  insight_event_metrics_api_event: 'api_fail',
  insight_event_metrics_api_message: 'error',
  insight_event_metrics_api_size: '0',
  insight_event_metrics_api_status: '400'
}

// discover VCT event props
{
  insight_event_metrics_api_app: 'discover',
  insight_event_metrics_api_duration: '710.8100000186823',
  insight_event_metrics_api_event: 'vct'
}

// fetchDiscoverRecommendations successful API event props
{
  insight_event_metrics_api_apiName: 'fetchDiscoverRecommendations',
  insight_event_metrics_api_app: 'discover',
  insight_event_metrics_api_duration: '424',
  insight_event_metrics_api_event: 'api_timing',
  insight_event_metrics_api_size: '1801',
  insight_event_metrics_api_status: '200'
}

// getFeatureFlags successful API event props
{
  insight_event_metrics_api_apiName: 'getFeatureFlags',
  insight_event_metrics_api_app: 'discover',
  insight_event_metrics_api_duration: '61',
  insight_event_metrics_api_event: 'api_timing',
  insight_event_metrics_api_size: '2131',
  insight_event_metrics_api_status: '200'
}

// getHivemindSplits successful API event props
{
  insight_event_metrics_api_apiName: 'getHivemindSplits',
  insight_event_metrics_api_app: 'discover',
  insight_event_metrics_api_duration: '183',
  insight_event_metrics_api_event: 'api_timing',
  insight_event_metrics_api_size: '275',
  insight_event_metrics_api_status: '200'
}

🤔

Anything better?

Made with Slides.com