Sprout comes with a few ways to expedite site analytics setup.

Analytics.jsx This component reads your environment variables and sets up GA4 and Facebook pixel tracking. If you have other scripts to add, add them here.

useRouterAnalytics.js This is sends page events to your various analytics platforms. GA4 handles push history changes, but Facebook still requires a push event. If any other 3rd party analytics platforms track page views, add them here.