I need to know WHO visits a specific page. The HOW or WHAT is not important. So far, I tried javascript to receive an email with the visiting person :
<script type="text/javascript"> var email = 'me@myself.com'; var subject = 'This page visitor'; var loginName = _spPageContextInfo.userLoginName; alert(loginName); location.href = "mailto:"+email+'&subject='+subject+'&body='+loginName; </script>
It does not work, since the user would have to send the email. And I do not want to give this choice to the user. Is it possible to force the sending?
Other possibilities: Can the user login name be logged in a list? In a .txt file?
I can use a free third party solution.
p.s. Quote from official documentation :”Note: Pages, such as .aspx, aren’t considered documents so they can’t be audited in SharePoint Server 2016.” Since I use SP Online 2016, I tried this solution, but it does not work.