WebmasterID logoWebmasterID
Referrers

npm referrer traffic

npm referrals come from package pages on npmjs.com, the JavaScript package registry. When your package page links to a homepage, repository, or docs, clicks reach you as npmjs.com referrals — a strong signal of developer interest in your library, though referrer policy can send some to direct.

Verified against primary sources

What this means

npm is the package registry for JavaScript and Node.js. Each published package has a page on npmjs.com that can surface homepage, repository, and documentation links drawn from the package metadata. Clicks on those reach your site as referrals from npmjs.com.

This traffic is a clear developer-intent signal: someone is evaluating or using your library and followed through to your docs or homepage, which is different from casual content discovery.

Why some clicks arrive as direct and what to do

Package pages can apply a referrer policy that downgrades or omits the Referer header, so a portion of npm-driven clicks will arrive as direct rather than npmjs.com. This is normal and not a measurement error.

The homepage and docs URLs come from your package metadata, which you control, so add utm_source=npm and utm_medium=referral to those links in your package configuration. The query string persists, so package-page clicks stay attributable even when the referrer is downgraded.

How it appears in analytics and logs

A referrer on npmjs.com means a visitor followed a link from a package page — typically the homepage, repository, or docs link of a library. It signals package-discovery interest, not general browsing.

Diagnostic use case

Identify developer traffic arriving from your package's npmjs.com page, and recover homepage and documentation clicks driven by package discovery.

What WebmasterID can help detect

WebmasterID groups npmjs.com referrals as a developer/registry channel and reconciles them with your UTM tags, so package-page clicks stay distinct from generic referral.

Common mistakes

Privacy and accuracy notes

Attribution uses only the Referer host. No npm user or developer is identified. WebmasterID records the package-discovery channel, not the person.

Related pages

Sources and verification notes

Last reviewed 2026-06-24. Facts are checked against primary/official sources where available; uncertain specifics are marked “Data not yet verified” rather than guessed.