diff --git a/gatsby-browser.js b/gatsby-browser.js index 40fe90cb7b0..8fac3d95c6f 100644 --- a/gatsby-browser.js +++ b/gatsby-browser.js @@ -138,7 +138,9 @@ export const onClientEntry = () => { updateURLAsPerUserLanguage() } -export const onRouteUpdate = () => { +export const onRouteUpdate = ({ location }) => { + Analytics.pageView(location.pathname, 'Deriv.com') + checkDomain() // can't be resolved by package function due the gatsby architecture window?._growthbook?.GrowthBook?.setURL(window.location.href)