Subdomain Tracking
Track visitors across multiple subdomains
Track visitors across multiple subdomains as a unified website experience. The Fusionaly SDK automatically handles subdomain tracking when the same script is installed on all subdomains.
Note: Subdomain tracking is disabled by default. Enable it from the Websites → Website → Settings page in the administration UI before installing scripts on additional domains.
How It Works
Section titled “How It Works”When you install the same tracking script on multiple subdomains, the SDK automatically:
- Tracks visitors across all subdomains as a single website
- Maintains user sessions when navigating between subdomains
- Shares analytics data across all subdomains
First, open the Websites section of the admin, select the website you want to track, and toggle Subdomain tracking in the Settings tab.
Then, install the same tracking script on all your subdomains:
```html<!-- On www.example.com --><script defer src="https://your-domain.com/y/api/v1/sdk.js"></script>
<!-- On app.example.com --><script defer src="https://your-domain.com/y/api/v1/sdk.js"></script>
<!-- On blog.example.com --><script defer src="https://your-domain.com/y/api/v1/sdk.js"></script>## What Gets Tracked
All subdomains share the same analytics data:
- **Page Views**: All page views across subdomains appear in one dashboard- **User Sessions**: Sessions persist when users navigate between subdomains- **Events**: Custom events from all subdomains are tracked together
No additional configuration is needed - the SDK automatically detects and handles subdomain tracking.