Paste this single line into the <head> of any website you want to track:
<script src="https://YOUR-APP.web.app/tracker.js" data-site="contacts-work" async></script>
- Zero Dependencies: Ultra-fast (< 1 KB) asynchronous payload.
- Non-blocking: Dispatches via
navigator.sendBeacon so your site's load speed is never affected.
- Custom Branch: Change
data-site="acme-store" to keep client domains isolated in Firestore.
Access live visitor data directly from your contacts.work CRM software:
CRM Authentication Header
You can also pass this as Authorization: Bearer wb_live_9f7c3b2e8a1d4f6cbb24e07a3c8d19e5
Look up all websites, pages, and timestamps a lead or contact has visited by their IP address.
curl -H "X-API-Key: wb_live_9f7c3b2e8a1d4f6cbb24e07a3c8d19e5" \
"https://www.webstats.work/api/v1/lookup?ip=94.63.47.193"
Retrieve the full chronological visiting path (Step 1, Step 2...) and dwell time per page for a session.
curl -H "X-API-Key: wb_live_9f7c3b2e8a1d4f6cbb24e07a3c8d19e5" \
"https://www.webstats.work/api/v1/sessions/ses_abc123"
Fetch the activity log for an isolated website branch (e.g. theipcompany-nl).
List all tracked client branches with visit counts and last-seen activity.
Data is neatly segregated in Firestore for fast, isolated queries:
Firestore Collections:
├── sites/
│ └── {siteId}/ # Branch metadata & counters
│ ├── visits/ # Isolated site visit events
│ │ └── {visitId}/
│ │ ├── ip # Client IP address
│ │ ├── url # Full URL visited
│ │ ├── path # Pathname
│ │ ├── referrer # Referring origin
│ │ ├── country / city # Geolocation
│ │ └── timestamp # Server timestamp
└── all_visits/ # Global index for fast cross-site CRM IP lookups