Salesforce Knowledge administrators may want to track article view statistics — such as how many times an article was viewed by internal users vs. external users — to help decide whether to archive, update, or promote certain articles.
Salesforce provides the KnowledgeArticleViewStat object, which stores view statistics for published and archived Knowledge Articles across different channels.
The KnowledgeArticleViewStat object stores per-article view statistics by channel — meaning the context in which the article was viewed. The two key fields are:
Available channels:
To count the number of times each article was viewed by internal Salesforce users, use the App channel in the SOQL query. The App channel represents views from within the internal Salesforce Knowledge application.
To run this query:
SELECT id, ViewCount FROM KnowledgeArticleViewStat WHERE Channel = 'App'This query returns a row for each published or archived Knowledge Article, with the unique view count for internal app views. To find the most-viewed articles, add ORDER BY ViewCount DESC to the query.
Note: The NormalizedScore field is also available on this object and provides a score between 0 and 1 reflecting the article's relative view popularity. You can include it in your query for additional context.
Developer Console Query Editor
AppExchange - Lightning Knowledge Dashboard
AppExchange - Knowledge Dashboard Pack for CRM Analytics
Report on Salesforce Knowledge Articles
000383653

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.