Metric vs Dimension
Metrics and Dimensions are the two fundamental data types in web analytics. They serve different purposes. Knowing the difference, and how they combine, is what makes reports meaningful instead of just rows of numbers.
Core Definitions
What are Metrics?
Metrics are quantitative measurements that represent performance. They are numerical values that can be counted, calculated, or aggregated.
Key characteristics:
- Always numerical (integers, decimals, percentages)
- Can be summed, averaged, or otherwise computed
- Change over time
- Answer "how much" or "how many"
Common examples:
- Pageviews: 45,230
- Sessions: 12,847
- Conversion rate: 3.2%
- Average session duration: 2 minutes 34 seconds
- Revenue: $15,420.50
What are Dimensions?
Dimensions are qualitative attributes that describe and categorize data. They give metrics context and let you segment for deeper analysis.
Key characteristics:
- Typically text-based or categorical
- Cannot be mathematically aggregated
- Provide context and grouping
- Answer "what", "where", "when", "who"
Common examples:
- Device type: Desktop, Mobile, Tablet
- Traffic source: Organic Search, Direct, Social Media
- Geographic location: United States, Canada, United Kingdom
- Page title: Homepage, Product Page, Contact Us
- Browser: Chrome, Firefox, Safari
Key distinction
If you can do math on it (add, subtract, average), it's likely a metric. If it categorizes or describes, it's a dimension.
Metric Types
Count Metrics
Simple counts of events or objects:
- Users: distinct visitors
- Sessions: visits
- Pageviews: page loads
- Transactions: completed purchases
Calculated Metrics
Derived from other metrics via formulas:
- Bounce rate: (Single-page sessions / Total sessions) × 100
- Pages per session: Total pageviews / Total sessions
- Average order value: Total revenue / Number of orders
- Conversion rate: (Conversions / Total sessions) × 100
Ratio Metrics
Express relationships between two count metrics:
- Click-through rate (CTR): Clicks / Impressions
- Cart abandonment rate: Abandoned carts / Started checkouts
- Return visitor rate: Returning visitors / Total visitors
- Exit rate: Exits from page / Total pageviews of page
Time-based Metrics
Measure duration or temporal aspects:
- Average session duration: Total session time / Number of sessions
- Page load time: time to fully render the page
- Time on page: duration spent viewing a specific page
- Days to conversion: time between first visit and purchase
Dimension Categories
User Dimensions
Describe visitor characteristics.
Technology:
- Device category: Desktop, Mobile, Tablet
- Operating system: Windows, macOS, iOS, Android
- Browser: Chrome, Safari, Firefox, Edge
Some platforms also expose demographic dimensions (age, gender, income) inferred from third-party identity data. Statable does not, since it uses no persistent visitor identifier and stores no third-party signals.
Session Dimensions
Context about individual visits.
Traffic sources:
- Channel: Organic Search, Paid Search, Direct, Referral
- Source: google, facebook, twitter, newsletter
- Medium: cpc, organic, email, referral
- Campaign: summer-sale, brand-awareness, product-launch
Temporal:
- Date: 2023-12-01, 2023-12-02
- Hour: 00, 01, 02 ... 23
- Day of week: Monday, Tuesday, Wednesday
- Month: January, February, March
Content Dimensions
Describe pages and content.
Page attributes:
- Page title: Home, Products, About Us, Contact
- URL path: /, /products, /blog/article-name
- Content category: Blog, Product, Service, Support
- Page type: Landing, Product Detail, Checkout, Thank You
Content performance:
- Author: john-smith, jane-doe, marketing-team
- Publication date: 2023-11-15, 2023-11-20
- Content length: Short (0-500 words), Medium (501-1500), Long (1500+)
- Topic: Analytics, Marketing, Technology, Business
Geographic Dimensions
Location context.
Standard geographic:
- Country: United States, United Kingdom, Canada
- Region/State: California, Texas, New York, Ontario
- City: Los Angeles, London, Toronto, Sydney
- Continent: North America, Europe, Asia, Oceania
Some tools allow custom geographic groupings (sales territory, market tier, language). Statable exposes built-in geo dimensions (Country, Region, City) and lets you reproduce custom groupings via custom properties on tracking events.
Interaction in Reporting
Report Structure
Dimensions and metrics combine in every report.
Basic report structure:
Dimension → Metric
Traffic Source → Sessions
- Organic Search → 8,500
- Direct → 3,200
- Social Media → 1,147
Multi-dimensional analysis:
Primary Dimension → Secondary Dimension → Metric
Device Type → Traffic Source → Conversion Rate
- Desktop → Organic Search → 4.2%
- Desktop → Direct → 5.8%
- Mobile → Organic Search → 2.1%
- Mobile → Social Media → 1.9%
Aggregation Rules
How data aggregates is critical for accuracy.
Metrics aggregation:
- Can be summed across dimensions
- Can be averaged with proper weighting
- Math operations are valid
Dimensions aggregation:
- Cannot be combined mathematically
- Used for grouping and filtering
- Form hierarchical relationships
Common mistake
Never sum or average dimensions. There is no "average device type" or "total page title".
Practical Applications
Building Effective Reports
Useful reports combine dimensions and metrics deliberately.
Performance overview report:
Dimensions: Date, Device Type
Metrics: Sessions, Pageviews, Bounce Rate, Conversion Rate
Result: Daily performance trends by device
Content analysis report:
Dimensions: Page Title, Traffic Source
Metrics: Pageviews, Time on Page, Exit Rate
Result: Content performance by acquisition channel
User behavior report:
Dimensions: New vs Returning, Geographic Location
Metrics: Session Duration, Pages per Session, Goal Completions
Result: Engagement patterns by user type and location
Segmentation Strategies
Use dimensions to build segments.
Behavioral segmentation:
- High-value customers: lifetime value > $500
- Engaged users: sessions > 5 minutes, > 3 pages viewed
- Bounce-prone traffic: single-page sessions from specific sources
Demographic segmentation:
- Mobile-first users: > 80% sessions from mobile
- International visitors: traffic from outside the primary country
- New tech adopters: latest browser/OS versions
Content preferences:
- Blog readers: high engagement with article content
- Product researchers: extended time on product pages
- Quick shoppers: direct navigation to checkout
Segmentation best practice
Combine multiple dimensions for precise segments. "Mobile users from social media with session duration > 2 minutes" is more actionable than a single-dimension cut.
Custom Metrics and Dimensions
Custom metrics
Some analytics platforms let you define calculated metrics in the UI, formulas combining existing metrics into new ones (e.g. an Engagement Score weighting pageviews and time on site). Statable does not expose calculated-metric configuration. The seven built-in metrics (Visitors, Sessions, Pageviews, Views Per Session, Bounce Rate, Session Duration, Engagement Time) are fixed. To compute derived metrics, query the Stats API and combine values in your own tooling.
Custom dimensions
Statable supports custom dimensions via Custom Properties. Any data-statable-{key} attribute on an element, or any property passed to window.statable.t('Event', { key: value }), becomes a dimension named prop_<key> in the dashboard, available in every filter dropdown.
Common patterns:
- User-level:
prop_plan = pro|free|trial,prop_account_age = new|established - Session-level:
prop_campaign = product-launch|retargeting,prop_intent = research|purchase - Event-level:
prop_format = article|video|podcast
Each property is auto-discovered the first time you send it. No configuration step.
Analysis Best Practices
Choosing the Right Combinations
Pick dimensions and metrics that match the question.
For traffic analysis:
- Dimensions: Source/Medium, Device, Geographic location
- Metrics: Sessions, Users, Pageviews, Session duration
For conversion optimization:
- Dimensions: Landing page, Traffic source, Device
- Metrics: Conversion rate, Goal completions, Revenue
For content performance:
- Dimensions: Page title, Content category, Author (the latter two via custom properties)
- Metrics: Pageviews, Time on page, Goal completions
Avoiding Common Pitfalls
Data misinterpretation:
- Don't compare metrics across incompatible dimensions
- Use proper date ranges
- Account for seasonality and external factors
Metric-dimension mismatch:
- Some metrics don't make sense with certain dimensions
- User-level metrics shouldn't be paired with session-level dimensions
- Make sure your data collection supports the analysis
Over-segmentation:
- Too many dimensions fragment data and reduce statistical significance
- Start high-level, drill down
- Keep meaningful sample sizes per segment
Pro tip
Start every analysis with a clear question. That picks the right metrics and dimensions automatically and avoids analyzing for analysis's sake.
Implementation Considerations
Data collection planning:
- Define metrics and dimensions before implementation. Pick names and stick with them.
- Keep naming conventions consistent across teams and codebases.
- Plan for future analysis. A property added today is a dimension forever.
Statable specifics:
- Built-in metrics and dimensions are fixed (no UI configuration). See Top stats and Filters & segmentation.
- Custom dimensions arrive via Custom Properties, auto-discovered the first time they're sent.
- For derived metrics not built in, fetch the components via the Stats API and compute them in your tooling.
When metrics become critical to business objectives, they evolve into KPIs.
Ready to take control of your web analytics? Try Statable free for 30 days — no credit card required, full feature access, GDPR-compliant by default. Start your free trial or view a live demo.