Subdomain tracking

Track multiple subdomains in a single site and analyze each one separately.

How it works

When you add the Glyphex tracking script to multiple subdomains (e.g., example.com and blog.example.com), all traffic is collected under one site. Glyphex automatically tracks which hostname each page view came from.

Viewing pages by subdomain

When your site has traffic from multiple hostnames, the pages list shows the full hostname with each page:

example.com/              12 views
blog.example.com/         8 views
blog.example.com/posts    5 views
example.com/pricing       4 views

This way, / on your main site is tracked separately from / on your blog subdomain.

Filtering by hostname

To focus on a specific subdomain, use the hostname filter:

  1. Go to the Behavior page
  2. Click the hostname dropdown in the filter bar
  3. Select the subdomain you want to analyze

The filter persists in the URL, so you can bookmark or share subdomain-specific views:

https://glyphex.io/sites/abc123/behavior?hostname=blog.example.com

Hostname breakdown

On the Behavior page, you can see a breakdown of traffic by hostname. This shows:

  • Number of visitors per hostname
  • Percentage of total traffic
  • Quick filter access

Setup

No special configuration is needed. Just add the same tracking script to all your subdomains:

<!-- Same script on example.com, blog.example.com, app.example.com, etc. -->
<script
  defer
  data-domain="example.com"
  src="https://glyphex.io/tracker.js"
></script>

The data-domain attribute should match your main site domain in Glyphex. All subdomains will be tracked automatically.

Common use cases

Main site + blog

Track example.com and blog.example.com together. See which blog posts drive traffic to your main site.

Documentation subdomains

Track docs.example.com alongside your main site. Understand which documentation pages are most visited.

Regional subdomains

Track us.example.com, eu.example.com, etc. Compare performance across regional sites.

App + marketing site

Track app.example.com and www.example.com together. See the full user journey from marketing to product.

Tips

  • Use the hostname filter to analyze subdomain-specific metrics like bounce rate and session duration
  • Compare conversion rates between subdomains by filtering and checking the Conversions tab
  • Search for pages by hostname in the pages list (e.g., search "blog" to find all blog pages)
  • Grouped view respects subdomains, so blog.example.com/posts/* is separate from example.com/posts/*