REST API
Workspace API keys call /api/v1 for sites, tracking status, goals, funnels, and analytics.
API guideDevelopers
Load analytics on your server, then render the dashboard in your product. Live data needs a paid CauseWise subscription and a workspace API key.
Install `@razorsoft/causewise` and `@razorsoft/causewise-react` from npm.
CauseWiseDashboard composes overview stats, an event-count trend, top pages, goals, funnels, and recent events. Trend counts are events, not pageviews.
Sample data. This preview does not call CauseWise.
Last 7 days, Oct 12, 2026 to Oct 19, 2026. Retention 90 days.
Sample data. Distinct pageview session ids.
Sample data. Visitors stay unavailable when an event has no visitor id.
Last 7 days. Events in each period.
Events for each period. The same numbers are listed after the chart.
| Period | Events |
|---|---|
| Oct 13 | 1,400 |
| Oct 14 | 1,620 |
| Oct 15 | 1,510 |
| Oct 16 | 1,890 |
| Oct 17 | 2,104 |
| Oct 18 | 1,980 |
| Oct 19 | 2,336 |
| Path | Views |
|---|---|
| / | 4,200 |
| /pricing | 1,660 |
| /docs | 980 |
Sample data. Dashboard rollup from the summary payload.
| Goal | Event | Conversions | Status | Last match |
|---|---|---|---|---|
| Signup | sign_up | 86 | Receiving events | Oct 19, 2026, 3:04 PM |
Sample data. Last step divided by entrants.
Property payloads are not included.
| Time | Type | Path |
|---|---|---|
| Oct 19, 2026, 3:04 PM | pageview | /pricing |
npm install @razorsoft/causewise @razorsoft/causewise-reactCAUSEWISE_API_KEY=cw_api_...
CAUSEWISE_SITE_ID=site_...Keep the key in the server environment. A complete Next.js example is in examples/nextjs/README.md in the repository. The key needs analytics:read, and goals:read or funnels:read for those sections.
Workspace API keys call /api/v1 for sites, tracking status, goals, funnels, and analytics.
API guideCoding assistants use https://causewise.io/api/mcp. The server exposes 21 tools.
Assistant guide@razorsoft/causewise runs on the server and calls the REST API.
SDK guide@razorsoft/causewise-react renders data you pass in. It never sees the management key.
Component guideThe plugin installs the public tracking snippet. Blocks and shortcodes render individual sections for signed-in users who can activate plugins.
WordPress