Change knowledge article view count calculation so that it doesn't increment view count when article is not published.

Michael Lee1
Tera Expert

Has anyone had experience doing this? From what I understand there are different system views which trigger an event called kb.view which then increments the view count based on viewing a knowledge article in the ess. But when it's viewed in the SP there is something else which increments the view. My issue is that it doesn't really make sense that the system should increment the view count of an article when it's not in a published state. While knowledge articles are being drafted they tend to be viewed multiple times by the author and approvers to insure that they are presentable to end users once they are published. So by the time an article is published it has tons of views which are really false positives and it throws the actual view count off. I'd like to make it so that it only increments the view count when the workflow_state is published. 

Any pointers would be greatly appreciated. 

5 REPLIES 5

Hi @Noah Drew I have a similar story.  We want to NOT increase the count if an article is viewed by a person with any of the Knowledge roles.  What are your thoughts on overcoming that obstacle?  Thank you in advance.