Track visitors across subdomains
Flowsery Analytics automatically monitors visitors across all subdomains of your primary domain, ensuring maximum analytics accuracy.
Need to track across entirely different domains? See cross-domain tracking for tracking between separate root domains.

Setting up subdomain tracking
- Create a website in Flowsery Analytics using your root domain (e.g.,
example.com) - Install the tracking script on every subdomain you want to track (e.g.,
app.example.com,blog.example.com) - Use the same website ID and domain parameter across all installations
<script
defer
data-fl-website-id="flid_******"
data-domain="your_domain.com"
src="https://analytics.flowsery.com/js/script.js"
></script>
Important: Always specify your root domain in the data-domain attribute, not the individual subdomain.
Benefits of cross-subdomain tracking
- Unified visitor journey: Follow users as they move between your marketing site, app, blog, and other subdomains
- Accurate attribution: Correctly attribute conversions to marketing campaigns even when users switch between subdomains
- Advanced filters: Segment your analytics by subdomain for deeper insights
Common use cases
- Follow user journeys from your marketing site (
example.com) to your app (app.example.com) - Attribute conversions to the right marketing channel when users move across subdomains
- Understand how blog content (
blog.example.com) drives traffic to your main site
Flowsery Analytics handles all cross-subdomain cookie synchronization automatically -- no additional code is needed to track users across subdomains.
Note: Need to track across entirely different root domains? See the cross-domain tracking guide. For advanced proxy configurations, check the Proxy through Next.js guide.