How best to bring the views records?

Hello.
Perhaps again I come to you with truism, but....
Can you please tell me how to get the number of views the record?
On the one hand, this question is simple and maybe stupid on my part, but I wonder how it is possible to do with these settings:
1. Counting all the hits and count the unique reads.
2. The division of the number of views - open the page/closed the page and number of readings - opened the page, read the article till the end and only after that is gone from the page.
3. The possibility of withdrawal of this figure (these figures) in the form of a shortcode or through metabole.
4. Is it possible to do without a plugin (I think it's possible, but it may require some knowledge of code...) and is there a plugin(s).
Perhaps too many parameters, too much of you (subsequentely machine time to take, probably), but please tell me how to solve this issue?
Looking forward to and reverence for You - owning answers to my question! And let Your response to the prompt solution of at least one-two-etc parameters!
Thanks in advance!
April 3rd 20 at 17:18
1 answer
April 3rd 20 at 17:20
Solution
Open search plugins in the official repository. Find the plugin views. Choose the one that is closer (but there is no magic, unlikely to 100% match with your TZ)

And then begins the creep, but it is on the "customer":

Copy the entire plugin code in functions.php your theme. Also styles and scripts in your theme throws. May be a problem with paths - fix.

Therefore, the code that you have is vulnerable - you update it can't if the plugin will fix critical vulnerability.

And you think the other code that you find in the landfills of the Internet, it does not apply? with him even worse...
Think about it - without plug-ins or security and support is important.

Find more questions by tags WordPress