All integrations
Developer & APIInbound syncStart & Scale plans

JS Tracking Code

Drop in a snippet to capture product usage directly — set up like GA4, feeding customer health.

How it works

What it captures

  • Behavioural events mapped to metrics and attributes via codenames
  • identify(), track() and pageView() calls from your app or site
  • Server-side events via the tracker API for backend actions
  • Events aggregated into a rolling 30-day usage summary

Overview

What it is

The Customerscore tracker is a lightweight JavaScript snippet you add to your product or website — set up much like Google Analytics — with identify, track and pageView methods to capture behavioural events.

Use cases

What it's ideal for

Capture usage without a CDP

No Segment or product-analytics tool? The snippet captures the usage signals scoring needs — set up like GA4.

Track exactly what matters

Map your own events to metrics by codename so health reflects the actions that signal value in your product.

Client and server events

Send browser events from the snippet and backend events through the tracker API for complete coverage.

Put your data to work with Customerscore

Customerscore predicts each customer's next move — churn and expansion — and explains why, so your team knows exactly who to focus on.