Skip to content

Subdomain Tracking

Track visitors across multiple subdomains

Track visitors across multiple subdomains as one website. The Fusionaly SDK handles this automatically, when you install the same script on all subdomains.

Note: Subdomain tracking is disabled by default. Enable it from the Websites → Website → Settings page in the administration UI, before you install scripts on additional domains.

When you install the same tracking script on multiple subdomains, the SDK automatically:

  • Tracks visitors across all subdomains as a single website
  • Keeps user sessions active when visitors move between subdomains
  • Shares analytics data across all subdomains

First, open the Websites section of the admin. Select the website you want to track. Toggle Subdomain tracking in the Settings tab.

Then, install the same tracking script on all your subdomains:

<!-- 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>

All subdomains share the same analytics data:

  • Page Views: All page views across subdomains appear in one dashboard
  • User Sessions: Sessions stay active when users move between subdomains
  • Events: Custom events from all subdomains are tracked together

You do not need more configuration. The SDK detects and handles subdomain tracking on its own.