Track across subdomains
Learn how to track visitors seamlessly across multiple subdomains with Faurya for unified analytics data.
Track visitors across subdomains
Faurya automatically tracks visitors across any subdomains of your main domain for maximum analytics accuracy.
Need to track across completely different domains? Check out cross-domain tracking for tracking between different root domains.
Image coming soon
Faurya hostname tracking across subdomains
Setting up subdomain tracking
- Create a website in Faurya using your root domain (e.g.,
example.com) - Install the tracking script on all your subdomains (e.g.,
app.example.com,blog.example.com) - Use the same website ID and domain parameter across all installations
<script
defer
data-website-id="fyid_******"
data-domain="your_domain.com"
src="https://faurya.com/js/script.js"
></script>Always use your root domain in the data-domain attribute, not the specific
subdomain.
Benefits of cross-subdomain tracking
- Unified visitor journey: Track users as they navigate between your marketing site, app, blog, and other subdomains
- Accurate attribution: Properly attribute conversions to marketing campaigns even if users move between subdomains
- Advanced filters: Filter your analytics by subdomain for better insights
Common use cases
- Track user journeys from your marketing site (
example.com) to your app (app.example.com) - Attribute conversions to the correct marketing channel when users navigate across subdomains
- Analyze how content on your blog (
blog.example.com) drives traffic to your main site
Faurya handles all the cross-domain cookie synchronization automatically, so you don't need to write any additional code to track users across subdomains.
Need to track across completely different root domains? See the cross-domain tracking guide.
Exclude visits
Guide to exclude your own visits, specific IP addresses, countries, hostnames, or certain URL paths from Faurya analytics. Ideal for developers, site owners, and ensuring data accuracy.
Track across different domains
Track visitors across multiple root domains with Faurya using cross-domain tracking.