You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We have enabled Google Analytics to log user search, url parameters that include ?search=some_term. However, it appears these events are not being sent to GA from the client and these searches are not getting logged.
Potential Solutions
I have a hunch that it has to do with the way URL parameters work in Gatsby. In order to save requests, it has its own routing like a single page javascript app. So changing the url might never notify the GA. I think there is some manual coding we need to do to trigger GA submits on certain events.
Problem
We have enabled Google Analytics to log user search, url parameters that include
?search=some_term
. However, it appears these events are not being sent to GA from the client and these searches are not getting logged.Potential Solutions
I have a hunch that it has to do with the way URL parameters work in Gatsby. In order to save requests, it has its own routing like a single page javascript app. So changing the url might never notify the GA. I think there is some manual coding we need to do to trigger GA submits on certain events.
@toribr found this thread on the Gatsby repo:
gatsbyjs/gatsby#64
onRouteChange
seems like a great place to start.The text was updated successfully, but these errors were encountered: