Closed mateoclarke closed 6 years ago
We were using "gatsby-plugin-google-analytics" to report page views. This didn't allow us to send back search data.
Instead, we are using the react-ga module and sending data a bit more manually using onRouteUpdate.
react-ga
onRouteUpdate
Fixes #117
⬇️ Example of what Google Analytics now sees including ?search=foo:
?search=foo
We were using "gatsby-plugin-google-analytics" to report page views. This didn't allow us to send back search data.
Instead, we are using the
react-ga
module and sending data a bit more manually usingonRouteUpdate
.Fixes #117
⬇️ Example of what Google Analytics now sees including
?search=foo
: