Course contentsShow
← Web Development
Lesson 2786 of 2,98250. Third-Party IntegrationsFree lesson

Custom Dimension and User Properties

Learn to enrich analytics data with custom dimensions, user properties, and segmentation.

Custom Dimension and User Properties

What you'll learn: How to extend analytics tracking beyond default metrics by capturing custom user attributes and behavioral dimensions for richer segmentation and insights.

Why Enrich Analytics Data?

Out-of-the-box analytics platforms track basic metrics like page views, clicks, and sessions. But your business likely has unique attributes that matter—like subscription tier, user role, or feature usage. Custom dimensions and user properties let you attach this context to your analytics data, enabling powerful segmentation like "How do premium users navigate differently than free users?"

Think of default analytics as a black-and-white photo. Custom dimensions add color—they give depth and meaning to the raw numbers.

Custom Dimensions vs User Properties

Custom dimensions are event-scoped attributes that describe what happened in a specific interaction:

gtag('event', 'file_upload', {
  file_type: 'pdf',        // Custom dimension
  file_size_mb: 2.5,       // Custom dimension
  upload_method: 'drag'    // Custom dimension
});

User properties are user-scoped attributes that describe who the user is across all sessions:

gtag('set', 'user_properties', {
  subscription_tier: 'premium',
  account_age_days: 45,
  preferred_language: 'en'
});

Segmentation Enables Better Insights

Once configured, you can filter reports by these properties: "Show me conversion rates for premium users who uploaded PDFs." This turns generic metrics into actionable intelligence about specific user cohorts.

Implementation Considerations

Always respect privacy regulations—never send personally identifiable information (PII) like emails or names. Use categorical identifiers instead: user_type: 'enterprise' not company_name: 'Acme Corp'.

Key Takeaway: Custom dimensions and user properties transform basic analytics into contextual insights by attaching meaningful business attributes to events and users, enabling powerful segmentation without compromising privacy.