To gain insights into Enhanced Functionality Tracking (EFT) within a Salesforce CRM Analytics (CRMA) dashboard, you can utilize the LightningUsageByPageMetrics dataset. This dataset provides detailed metrics on user interactions with Lightning pages, which can be analyzed using Salesforce Analytics Query Language (SAQL). Below are some SAQL queries that can help you extract meaningful insights:
1. Analyze Page Views by User
This query calculates the total number of page views per user, helping identify the most active users.
q = load "LightningUsageByPageMetrics";
q = group q by 'UserId';
q = foreach q generate 'UserId' as 'UserId', sum('PageViews') as 'TotalPageViews';
q = order q by 'TotalPageViews' desc;
q = limit q 2000;
2. Determine Average Page Load Time by Page
This query computes the average page load time for each page, assisting in identifying pages that may require performance optimization.
q = load "LightningUsageByPageMetrics";
q = group q by 'PageName';
q = foreach q generate 'PageName' as 'PageName', avg('AvgPageLoadTime') as 'AverageLoadTime';
q = order q by 'AverageLoadTime' desc;
q = limit q 2000;
3. Track Daily Page Views Over Time
This query tracks the number of page views per day, enabling the analysis of usage trends over time.
q = load "LightningUsageByPageMetrics";
q = group q by ('MetricsDate_Year', 'MetricsDate_Month', 'MetricsDate_Day');
q = foreach q generate 'MetricsDate_Year' as 'Year', 'MetricsDate_Month' as 'Month', 'MetricsDate_Day' as 'Day', sum('PageViews') as 'TotalPageViews';
q = order q by ('Year' asc, 'Month' asc, 'Day' asc);
q = limit q 2000;
4. Identify Users with High Error Counts
This query identifies users who have encountered a high number of errors, which can be useful for troubleshooting and support.
q = load "LightningUsageByPageMetrics";
q = group q by 'UserId';
q = foreach q generate 'UserId' as 'UserId', sum('ErrorCount') as 'TotalErrors';
q = filter q by 'TotalErrors' > 0;
q = order q by 'TotalErrors' desc;
q = limit q 2000;
5. Compare Page Views Between Two Time Periods
This query compares the number of page views between two different time periods, such as two consecutive months, to analyze changes in user engagement.
q = load "LightningUsageByPageMetrics";
q_A = filter q by date('MetricsDate_Year', 'MetricsDate_Month', 'MetricsDate_Day') in ["2 months ago".."2 months ago"];
q_B = filter q by date('MetricsDate_Year', 'MetricsDate_Month', 'MetricsDate_Day') in ["1 month ago".."1 month ago"];
q = cogroup q_A by 'PageName' full, q_B by 'PageName';
q = foreach q generate coalesce(q_A.'PageName', q_B.'PageName') as 'PageName', sum(q_A.'PageViews') as 'PageViews_Month1', sum(q_B.'PageViews') as 'PageViews_Month2';
q = foreach q generate 'PageName', 'PageViews_Month1', 'PageViews_Month2', 'PageViews_Month2' - 'PageViews_Month1' as 'ChangeInPageViews';
q = order q by 'ChangeInPageViews' desc;
q = limit q 2000;
These queries can be customized further based on specific requirements, such as filtering by particular users, pages, or date ranges. By integrating these SAQL queries into your CRMA dashboard, you can effectively monitor and analyze user interactions and system performance within the Lightning Experience.