Blog starter example: add @vercel/analytics/react and Analytics component by default #44922
Open
1 task done
Labels
area: examples
Anything inside the examples folder
Verify canary release
Provide environment information
Which example does this report relate to?
https://github.com/vercel/next.js/tree/canary/examples/blog-starter
What browser are you using? (if relevant)
Safari Version 15.4 (17613.1.17.1.6)
How are you deploying your application? (if relevant)
No response
Describe the Bug
Issue type: enhancement
Context: I'm standing up a blog post for the first time, and I wanted to have pageview/traffic metrics on Day 1. I started exploring Google Analytics but hit a few snags, and only afterwards discovered Vercel had the Analytics feature.
This GitHub issue is a suggestion to add it by default into the Vercel template.
Note: the feature is marked as still in Beta, not sure if that would influence whether or not this is added into the template.
Expected Behavior
No need to touch the template code to get Analytics (note: still requires enabling the feature in the dashboard)
To Reproduce
View source code, missing from: https://github.com/vercel/next.js/blob/canary/examples/blog-starter/pages/_app.tsx
The text was updated successfully, but these errors were encountered: