vercel / analytics

Privacy-friendly, real-time traffic insights
https://vercel.com/analytics
Mozilla Public License 2.0
416 stars 24 forks source link

Docs: Specify if `track` runs in development mode or not #119

Closed jamesvclements closed 6 months ago

jamesvclements commented 7 months ago

Does track still run when NODE_ENV === development? I'm wondering if I should wrap my track calls in process.env.NODE_ENV === checks, or if this is handled automatically by the analytics library.

tobiaslins commented 7 months ago

Hey @jamesvclements !

It "runs" during development as well, you should see a console.log. We're not sending the event to the server during development