Nextjs + Tracking
Stop sharing company personal data with Nextjs?
Data is a susceptible part of life; you stop data sharing with one command in nextjs.
Nextjs is a huge library in the reactjs world. Nextjs collect data for improvement and bug fixing. Suppose you are more concerned about your data. You can stop data sharing with nextjs.
For data sharing, nextjs build a telemetry command-line tool. Telemetry tool collects data completely anonymous. telemetry tool helps to enable or disable data sharing in nextjs.
How to find nextjs collect data?
There are two ways to check data collection(Telemetry) is enabled or not in nextjs. By default, nextjs enable telemetry in install time.
- Terminal or console
- Command-line
Terminal or console
You can see a telemetry message in the terminal, which means telemetry is enabled.

Command-line
In a second way, you check telemetry status enable or not enabled with the command line.
- status: enabled ( nextjs data collection starts)
- status: disabled (nextjs does not collect data)
npx next telemetry status

Which data is nextjs collected?
According to nextjs, nextjs collect general data from the app.
- Nextjs collect Build time-related data
- Version of nextjs
- Size of app
- Machine(window, Linux, macOS and no of CPUs)type of data
- Plugin related data
- command invokes data
Nextjs data share with others?
According to nextjs collect data anonymous. nextjs never collect sensitive data. Nextjs never be share data with companies.
According to docs, Nextjs current use data to build a fast and secure website. Soon, nextjs share data with the community to build a fast and secure website.
How to stop data tracking in nextjs?
For data tracking nextjs build telemetry command with command-line, you can stop data tracking easily.
Ensure you run the telemetry command on an app root level to disable telemetry. You do not run inside the pages folder.
npx next telemetry disable

How to check telemetry status in nextjs?
You can check telemetry status in nextjs with the telemetry command. You run the telemetry command in the app root folder.
npx next telemetry status

How to enable telemetry status in nextjs?
You can enable telemetry and permission again to nextjs collect data from your website. That way, you can help the nextjs core team build fast and better nextjs.

Environment variable
You can stop sending data to nextjs with the environment variables. You can add environment variables in-app, and nextjs stop sending general data.
NEXT_TELEMETRY_DISABLED=1
Reference
Previous articles
Conclusion
I’m happy with nextjs, one of the libraries that tells the users which data we collect, how the collection and how to stop it.
But I have one question in my mind, and nextjs does not answer in docs. That is, nextjs does collect data with telemetry on development and production level and how to sure nextjs never collect data on a production level?
I trust nextjs; I hope nextjs collect general development-related data to improve web speed and security.
I hope one-day nextjs to share collected data with the nextjs community. I’m also happy to see data, how the nextjs website works with a web browser, and how to handle and improve users experience.
If you have any queries or need my help, don’t hesitate to contact me at officialrajdeepsingh[@]gmail.com. Are you migrating React to Next.js? You can also contact me and follow the Next.js publication.
Feel free to like and share my article with others if you like my writing. You also tag on Twitter official_R_deep.
https://officialrajdeepsingh.dev/
Read More content at Nextjs. Sign up for a free newsletter and join the nextjs community on medium.