diff --git a/packages/sui-react-web-vitals/src/index.js b/packages/sui-react-web-vitals/src/index.js index 78705b0d7..0fe2d5c93 100644 --- a/packages/sui-react-web-vitals/src/index.js +++ b/packages/sui-react-web-vitals/src/index.js @@ -113,7 +113,8 @@ export default function WebVitalsReporter({ path: hasPathOnRoute ? pathname : getNormalizedPathname(pathname), target, loadState: attribution.loadState, - ...(attribution.eventType && {eventType: attribution.eventType}) + ...(attribution.eventType && {eventType: attribution.eventType}), + visibilityState: document.visibilityState }) }