- Upload this file to your SharePoint Root Site Collection and place it in the Style Library (Why? Regularly I use this lib as a on-premises CDN)
- Make sure the file is accessible
- Create a Script Link in the Site Collection you want to track.
For step 3 You can use the following PowerShell code to add a script link to your site collection:
With this setting you can track a user and gain basic insights about his flow through your website. The data you are gaining by now is very basic and there are some SharePoint only specialties: