Socket
Socket
Sign inDemoInstall

@vercel/analytics

Package Overview
Dependencies
Maintainers
8
Versions
52
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vercel/analytics

![Analytics](https://github.com/vercel/analytics/blob/main/.github/banner.png)


Version published
Weekly downloads
416K
increased by0.71%
Maintainers
8
Weekly downloads
 
Created
Source

Analytics

Vercel Web Analytics
Privacy-friendly, real-time traffic insights

Website · Documentation · Twitter

Overview

@vercel/analytics allows you to track page views 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.

  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 <Analytics /> component to inject the script into your app.
    • For other frameworks, you can use the inject function add the tracking script to your app.
    • If you want to use Vercel Web Analytics on a static site without npm, follow the instructions in the documentation.
  4. Deploy your app to Vercel and see data flowing in.

Documentation

Find more details about this package in our documentation.

Keywords

FAQs

Package last updated on 19 Apr 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc