Skip to content
This repository has been archived by the owner on Sep 26, 2024. It is now read-only.

Amir/CRO-300/Add page tracking event #6013

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion gatsby-browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,9 @@ export const onClientEntry = () => {
updateURLAsPerUserLanguage()
}

export const onRouteUpdate = () => {
export const onRouteUpdate = ({ location }) => {
Analytics.pageView(location.pathname, 'Deriv.com')
amir-deriv marked this conversation as resolved.
Show resolved Hide resolved

checkDomain()
// can't be resolved by package function due the gatsby architecture
window?._growthbook?.GrowthBook?.setURL(window.location.href)
Expand Down
Loading