I am very new to WordPress plugin development.
I have been searching this for a quite a while now but I am currently creating a plugin and I need my plugin to start logging the amount of views a post has had. I already know what I want this part of to do however I am having trouble find out how to a PHP function for when a post is viewed by a visitor to my WordPress site.
Could someone please show me what the WordPress hook/event is to run a function on post view/load? I want to do this without the use of template as well.