PureStats documentation
Site aliases
Connect domains or subdomains to one PureStats site. Learn how aliases affect tracking, verification and cross-domain sessions without splitting your reports.
Site aliases let one analytics site accept events from multiple allowed hostnames. Add them in Site settings → Domains with Add domain.
Example
Canonical site:
example.com
Allowed aliases:
www.example.com
app.example.com
checkout.example.com
PureStats stores aliases separately and resolves incoming events through the canonical site ID. The matching www. or non-www. hostname is added automatically when available.
Why aliases matter
Without aliases, a tracker running on a different hostname such as app.example.com would be rejected if the configured site is example.com. Aliases prevent accidental data loss while still blocking invalid or malicious hostnames.
When to use aliases
Use aliases for:
- App and marketing subdomains.
- Checkout domains.
- Documentation or help center domains owned by the same product.
Do not use aliases for unrelated client sites. Create separate sites instead.
Cross-domain sessions
Aliases allow events to be accepted. Cross-domain session stitching is a separate setting in Site settings → Privacy settings that helps connect a visitor journey across those allowed hostnames.
Verification
After adding an alias, open a page on that hostname, then check Site settings → Domains, which shows recent activity for each accepted domain, or the last hit on the tracking setup's Overview tab.