
Product
Introducing Webhook Events for Alert Changes
Add real-time Socket webhook events to your workflows to automatically receive software supply chain alert changes in real time.
@counterscale/tracker
Advanced tools
Client-side page view tracking library for [Counterscale](https://counterscale.dev).
Client-side page view tracking library for Counterscale.
For instructions on downloading and deploying the Counterscale server, consult the project README.
In your browser-based web project:
npm install @counterscale/tracker
Initialize Counterscale with your site ID and deployment URL:
import * as Counterscale from "@counterscale/tracker";
Counterscale.init({
siteId: "your-unique-site-id",
deploymentUrl: "https://{subdomain-emitted-during-deploy}.pages.dev/",
});
That's it! Your page views will automatically be tracked and reported to Counterscale.
Alternatively you can track page view events manually.
To do so, during initialization set autoTrackPageviews to false. Then, you manually call Counterscale.trackPageview() when you want to record a pageview.
import * as Counterscale from "@counterscale/tracker";
Counterscale.init({
siteId: "your-unique-site-id",
deploymentUrl: "https://{subdomain-emitted-during-deploy}.pages.dev/",
autoTrackPageviews: false, // <- don't forget this
});
// ... when a pageview happens
Counterscale.trackPageview();
FAQs
Client-side page view tracking library for [Counterscale](https://counterscale.dev).
We found that @counterscale/tracker demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?

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.

Product
Add real-time Socket webhook events to your workflows to automatically receive software supply chain alert changes in real time.

Security News
ENISA has become a CVE Program Root, giving the EU a central authority for coordinating vulnerability reporting, disclosure, and cross-border response.

Product
Socket now scans OpenVSX extensions, giving teams early detection of risky behaviors, hidden capabilities, and supply chain threats in developer tools.