Google Analytics
Hi everyone
I'm trying to add Google Analytics to my Solid Start project, but no data appears on the analytics page.
Already try two ways:
- Using script loader
- add the code on
onMount
Anyone can help me please?3 Replies
I'd love to see answers to this. I'll be needing this soon +1
Already try a lot of things, nothings working
Anyone can help me please?
step1: create script with
createScriptLoader
. asnyc() is must.
step2: insert {gaTag}
into JSX, such as header or footer inside the router component.
that will work. Key points: 1. async() 2.insert to JSX where you want to collect statistics