For what I needed, this video was superb. You described things clearly in an organized manner. I learned multiple things and I know I would have had issues trying this out, without watching this. Thank you and great job.
Hey Tuomo, great explanation as usual. 2:50 Please note that the linked repository's last update doesn't contain the shown _document.js file - one needs to go to older commits to find it.
Thanks for this tutorial. I was wondering... how we can get the id Client? is it possible? any localStorage config or something?. Also I noticed that even if we put the ID in an env, it still appears on the network... weird. Cheers bro!
_document.js can update the html and body elements where _app.js updates only things inside the element, you can find more info on the differences here: nextjs.org/docs/advanced-features/custom-document and nextjs.org/docs/advanced-features/custom-app
This video helped me a lot. Thanks for this amazing video!
Thanks! Im glad to hear you found it helpful.
For what I needed, this video was superb. You described things clearly in an organized manner. I learned multiple things and I know I would have had issues trying this out, without watching this. Thank you and great job.
Glad it was helpful!
@@TuomoKankaanpaa why for me view for page title and screen name not appearing @Tuomo Kankaanpää pls reply sir
This was pretty straightforward 😊😊
Cheers!
Hey Tuomo , Great tutorial !
Thanks!
Hey Tuomo, great explanation as usual.
2:50 Please note that the linked repository's last update doesn't contain the shown _document.js file - one needs to go to older commits to find it.
Thanks for pointing that out! 🙏
This helped me out tremendously. Good instructions and explanations as well. Thank you so much and keep up the good work Tuomo!
Great to hear, thanks!
Avery nice and easy to understand video thanks
Thanks!
@@TuomoKankaanpaa @the it is only working for local host but i need in the stagging/production how to do that sir
Awesome! Clearly explained. Thanks for sharing!
Thanks!
Awesome stuff! Really appreciate it.
Great to hear!
Thanks for the video!
You're welcome!
Works like a charm!
Thanks.
Glad it helped!
thank you! that was really helpful for me today
Great to hear!
Thank you so much, appreciate your efforts very much.
Glad to hear, thanks!
Thanks for this tutorial. I was wondering... how we can get the id Client? is it possible? any localStorage config or something?. Also I noticed that even if we put the ID in an env, it still appears on the network... weird. Cheers bro!
Thanks for sharing 👍
Cheers!
in the example by vercel the script tags you placed in _document.js where placed in _app.js any difference there would like to know please
_document.js can update the html and body elements where _app.js updates only things inside the element, you can find more info on the differences here: nextjs.org/docs/advanced-features/custom-document and nextjs.org/docs/advanced-features/custom-app
amazing awesome useful video, subscribed!
Awesome, thank you!
Great tutorial thanks a lot!
Cheers!
I must be the only one who can't get this to work. Even forked the nextJS example. There are 0 events showing up in the realtime tab.
Sorry to hear that man! I'd start by checking from devtools that your app is making request to GA and debugging from there!
nope same problem for me, did you get it working?
@@TuomoKankaanpaa v it is only working for local host but i need in the stagging/production how to do that sir
Thank u! It works :D 2022
Would we need to get consent from the user when doing this to comply with gdpr?
Thanks for the video, really helpful!
Great to hear! I’m not gdpr expert so unfortunately can’t say for sure everything it takes to comply with gdpr.
example has been updated since, so make sure to look in next.js/examples.
Adsense in nextJS better than adsense in WordPress? 🤔
Haven’t used adsense in wp so unfortunately I can’t say
Great! Thank you.
Cheers!
does it capture localhost events too? I think it only captures events coming from mentioned url.
Did you test it out? I'd say that it captures events coming from localhost too but no 100% sure
Awesome!
Thank you! Cheers!
Thank you very much
🙏🙌
does this work with react ?
Next.js uses react 👍
what about adsense in nextjs?
I haven't used adsense with Next.js but I'd say it shouldn't be much different from adding GA.
@@TuomoKankaanpaa alright I'm trying to implement it but resources are few and far between with not much clarity
@@cazterk let me know how it goes!
@@TuomoKankaanpaa awesome
why for me view for page title and screen name not appearing @Tuomo Kankaanpää
Hard to say, can you provide a bit more info