How do I call an analytics function every time the page is loaded? #27794
Unanswered
daydream05
asked this question in
Help
Replies: 1 comment 1 reply
-
WrapPageElement will give you access to the pageProps. I would suggest using a |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Also, I would need the data from the page that is rendered.
I'm looking at gatsby-browser apis but not sure which one to use
onClientEntry doesn't have data from the page
I was using
useEffect(() =>, [])
before but sometimes the analytics hasn't loaded yet which causes referencerror.Beta Was this translation helpful? Give feedback.
All reactions