Manage Segments

July 2, 2025
2 min read
segmentsfilteringanalyticspathname

Segments allow you to filter your analytics data based on URL patterns. Create segments to understand different page groups and get more targeted insights from your data.

What is a Segment?

A segment is a filter that isolates specific portions of your analytics data based on URL patterns. Use segments to analyze different page groups separately for deeper insights.

Understanding Segments

Segments help you organize your analytics data by URL patterns:

URL Pattern Filtering
URL Pattern Filtering
Create precise segments to analyze specific page groups and user journeys
  • URL path filtering
  • Multiple pattern matching
  • Dashboard integration
  • AI-powered insights
  • Real-time filtering

Key Benefits

  • Focused Analysis: Isolate specific page groups (e.g., dashboard vs marketing pages)
  • User Journey Insights: Track how users move through different areas of your site
  • Performance Comparison: Compare metrics across different page groups
  • Content Optimization: Identify which page types perform best

Current Implementation

UserPath segments currently support URL pattern filtering using the `pathname` field. Additional filtering capabilities (user properties, geographic data, device types) are planned for future releases.

Creating Segments

To create a segment, go to the Settings page and click on the Segments tab. From there you can create it manually or use the Ask AI button to create it for you.

Segment Operators

UserPath supports four operators for flexible URL pattern matching:

OperatorDescriptionExample
equalsExact path matchpathname equals "/pricing"
containsPartial path matchpathname contains "product"
startsWithPath prefix matchpathname starts with "/blog"
endsWithPath suffix matchpathname ends with "/checkout"

Using Segments in Dashboards

Segments in Dashboards

Once created, segments can be applied to filter your dashboard, live and performance analytics. The goals analytics has more granular control over which properties are used to filter the data. So use it for more complex analysis.

Common Segment Strategies

By Page Function:

  • Marketing: Homepage, pricing, features, landing pages
  • Product: Catalog, product pages, search, filters
  • Support: Help docs, FAQ, contact, support tickets
  • Account: Login, signup, dashboard, settings

By User Journey Stage:

  • Discovery: Blog, guides, educational content
  • Evaluation: Pricing, features, comparisons, demos
  • Conversion: Checkout, trial signup, contact forms
  • Retention: Dashboard, account pages, feature usage

By Content Type:

  • Static: About, legal, policy pages
  • Dynamic: Blog posts, news, user-generated content
  • Interactive: Tools, calculators, configurators
  • Transactional: Cart, checkout, account management
Ready to Analyze Your Segments?
Create a segment to filter your analytics data