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
Match and lookup all visits by IP address, campaign name (e.g. spring_promo), or ad click IDs (gclid, li_fat_id, fbclid).
curl -H "X-API-Key: wb_live_9f7c3b2e8a1d4f6cbb24e07a3c8d19e5" \
"https://www.webstats.work/api/v1/lookup?campaign=q4_launch"
Aggregate all active campaigns, total visits, unique visitors, click IDs, and lead conversion actions for CRM reconciliation.
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