Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/vercel/analytics
Privacy-friendly, real-time traffic insights
https://github.com/vercel/analytics
Last synced: 27 days ago
JSON representation
Privacy-friendly, real-time traffic insights
- Host: GitHub
- URL: https://github.com/vercel/analytics
- Owner: vercel
- License: mpl-2.0
- Created: 2022-10-24T18:36:11.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-05-24T10:00:46.000Z (5 months ago)
- Last Synced: 2024-10-02T14:35:00.995Z (about 1 month ago)
- Language: TypeScript
- Homepage: https://vercel.com/analytics
- Size: 827 KB
- Stars: 424
- Watchers: 34
- Forks: 26
- Open Issues: 15
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
![Analytics](https://github.com/vercel/analytics/blob/main/.github/banner.png)
Vercel Web AnalyticsPrivacy-friendly, real-time traffic insights
## Overview
`@vercel/analytics` allows you to track page views and custom events in your Next.js app or any other website that is deployed to Vercel.
All page views are automatically tracked in your app.
This package does **not** track data in development mode.
## Quickstart
1. Enable Vercel Web Analytics for a project in the [Vercel Dashboard](https://vercel.com/dashboard).
2. Add the `@vercel/analytics` package to your project
3. Inject the Analytics script to your app- If you are using **Next.js** or **React**, you can use the `` component to inject the script into your app.
- To add the tracking script for other frameworks, use the `inject` function.
- If you want to use Vercel Web Analytics on a static site without npm, follow the instructions in the [documentation](https://vercel.com/docs/analytics/quickstart).4. Deploy your app to Vercel and see data flowing in.
## Documentation
Find more details about this package in our [documentation](https://vercel.com/docs/analytics/quickstart).