Skip to content

Commit

Permalink
feat(packages/sui-react-web-vitals): add INP eventType attribution
Browse files Browse the repository at this point in the history
  • Loading branch information
nucliweb committed Oct 23, 2023
1 parent 44515d4 commit 3b0b664
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/sui-react-web-vitals/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,8 @@ export default function WebVitalsReporter({
amount,
path: hasPathOnRoute ? pathname : getNormalizedPathname(pathname),
target,
loadState: attribution.loadState
loadState: attribution.loadState,
...(attribution.eventType && {eventType: attribution.eventType})
})
}

Expand Down

0 comments on commit 3b0b664

Please sign in to comment.