From 11aca0ebbe8118c2bfa69364356685eca7ebbe92 Mon Sep 17 00:00:00 2001 From: Tyson Cleary Date: Sun, 1 Feb 2026 23:24:32 -0600 Subject: [PATCH] feat: add custom tracking domain support Add KEY_TRACKING_DOMAIN config option that allows sending tracking requests to a custom domain instead of the default region-based endpoints. When configured, requests are sent to https://{tracking_domain}/track/. Co-Authored-By: Claude Opus 4.5 --- README.md | 5 +++-- dist/w.js | 4 ++-- dist/w.js.map | 2 +- dist/wpt.js | 18 +++++++++++++----- src/constants.js | 1 + src/tracker.js | 16 ++++++++++++---- test/index.js | 28 ++++++++++++++++++++++++++++ 7 files changed, 60 insertions(+), 14 deletions(-) diff --git a/README.md b/README.md index 408bdc5..98e2f3b 100644 --- a/README.md +++ b/README.md @@ -33,7 +33,7 @@ If you need multiple instances just duplicate the snippet with a different insta The Woopra tracker can be customized using the config function. Find below the list of options: | Option | Default | Description | -|----------------------------------|----------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------| +| -------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | | **domain** | N/A: required | **REQUIRED** Project Name in Woopra. Must be explicitly set for tracker to work. | | beacons | Browser support | Whether to use `navigator.sendBeacon` instead of `