Overview
Create custom metrics using SQL queries in Analytics Dashboard
Analytics
Hardal Analytics provides comprehensive insights into your application’s performance and user behavior through both pre-built metrics and custom SQL queries. The analytics dashboard offers cookieless tracking capabilities while maintaining user privacy.
Default Dashboard Metrics
The analytics dashboard comes with several pre-configured metric categories:
Realtime Metrics
- Active users
- Current page views
- Live sessions
- User engagement
Consent Metrics
- Consent rates
- Opt-in/opt-out trends
- Consent management performance
Basic Metrics
- Total page views
- Unique visitors
- Session duration
- Bounce rates
System Metrics
- Server response times
- Error rates
- API performance
- System health indicators
Advanced Metrics
- User flow analysis
- Conversion funnels
- Custom event tracking
- Attribution analysis
Creating Custom Dashboards
You can create custom metrics and dashboards using SQL queries to analyze your data in ways specific to your needs.
How to Create a Custom Metric
- Navigate to the Analytics Dashboard
- Click on “Create Metric” button
- Fill in the following information:
- Metric Title: Give your metric a descriptive name
- Description: Explain what the metric tracks
- SQL Query: Write your custom SQL query
- Visualization Type: Choose how to display your data (Table, Line Chart, Bar Chart, etc.)
- Chart Color: Customize the appearance of your visualization
Example SQL Queries
Here are some common custom metric queries:
Tips for Custom Metrics
- Use appropriate time ranges in your queries for meaningful trends
- Include filters to focus on specific user segments
- Optimize queries for performance
- Use appropriate aggregations (COUNT, AVG, SUM) based on your needs
- Consider adding WHERE clauses to exclude irrelevant data
Available Tables
Your custom queries can access the following main tables:
sessions
: User session datapage_views
: Individual page view eventsevents
: Custom event trackingusers
: User profile informationtelemetry
: System performance data
Remember to test your queries thoroughly before saving them as metrics to ensure they provide accurate and meaningful insights for your analytics needs.
For more information on how to use the Analytics Dashboard, please contact suppoFrt team at support@usehardal.com
Was this page helpful?