Skip to content

Commit

Permalink
chore: adding network information to page view event (#17795)
Browse files Browse the repository at this point in the history
  • Loading branch information
agrim-deriv authored Dec 16, 2024
1 parent 9defee6 commit 4cffe22
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/core/src/App/Containers/Layout/app-contents.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,9 @@ const AppContents = observer(({ children }) => {
Analytics.pageView(window.location.href, {
loggedIn: is_logged_in,
device_type: isMobile ? 'mobile' : 'desktop',
network_rtt: navigator?.connection?.rtt,
network_type: navigator?.connection?.effectiveType,
network_downlink: navigator?.connection?.downlink,
});
// react-hooks/exhaustive-deps
}, [window.location.href]);
Expand Down

0 comments on commit 4cffe22

Please sign in to comment.