nextjs-google-analytics
nextjs-google-analytics copied to clipboard
Add page specific data layers and variables to documentation
Thank you for building this. It's one of the few packages out there of its kind. Question: How do I add page-specific data layers?
Example A: I have different categories of content. Blogs, Team Members, Portfolio Pieces, etc. How would I let GA4 know which is which?
Example B: I have an online shop where each product gets its own page; how would I be able to let GA4 know which products are added to a cart along with associate prices/information to those products?
Bonus: It would be great if there were some information in the documentation on how to get this up and running on the Google Analytics admin dashboard as well.
Hi @jordanlambrecht !
Those are great suggestions, thanks you so much from raising them.
I would love to work on the documentation but unfortunately time is limited, but glad to merge any PR doing this.
@jordanlambrecht @MauricioRobayo Looks like pretty old conversation, I was looking for data layer option but didn't found anything on the doc. Any example how we can pass/update data layer ? Thanks in advance :)