Skip to content

Commit

Permalink
Fix deploymentUrl -> reporterUrl
Browse files Browse the repository at this point in the history
  • Loading branch information
benvinegar authored Feb 4, 2025
1 parent c47ce05 commit c41f388
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,14 +72,14 @@ The Counterscale tracker is published as an npm module:
npm install @counterscale/tracker
```

Initialize Counterscale with your site ID and deployment URL:
Initialize Counterscale with your site ID and the URL of your deployed reporting endpoint:

```typescript
import * as Counterscale from "@counterscale/tracker";

Counterscale.init({
siteId: "your-unique-site-id",
deploymentUrl: "https://{subdomain-emitted-during-deploy}.pages.dev/",
reporterUrl: "https://{subdomain-emitted-during-deploy}.pages.dev/collect",
});
```

Expand All @@ -98,7 +98,7 @@ import * as Counterscale from "@counterscale/tracker";

Counterscale.init({
siteId: "your-unique-site-id",
deploymentUrl: "https://{subdomain-emitted-during-deploy}.pages.dev/",
reporterUrl: "https://{subdomain-emitted-during-deploy}.pages.dev/collect",
autoTrackPageviews: false, // <- don't forget this
});

Expand Down

0 comments on commit c41f388

Please sign in to comment.