Recently I started applying for a new job and I have been including a link to my website on my resume. I have been using Plausible analytics to get analytics on user visits like where they came from, what pages they visit, country, ETC. The issue I had is that when a company visited my website from the link I gave them, they all showed up as visiting my website directly so I could not tell companies apart. I could tell that at least one company visited my site but I didn't know if multiple companies visited or if multiple people from one company visited.
My solution is a two parter but its incredibly easy.
I installed the PrettyLinks plugin, this allows me to create a custom shortened link which redirects to my home page. For example I can create a link to https://mysite.com/company1. which redirects whatever target URL I want such as /home/ . This plugin does keep track of clicks which is nice but in the second step you get way more granular analytics
I set the target URL of my prettylink as https://mysite.com/?source=company1. By adding the /?source= to the end of the URL I am setting the HTTP referrer header which can be tracked by Plausible or any other analytics plugin.
Now I put https://mysite.com/company1. or whatever I choose to call the link in my resume, and when someone at the company clicks on the link they get redirected to my home page and plausible will see them as coming from company1. I can now sort the analytics to only view details from people who came from that referrer source. I can see how many people visit from that source, what city they visited from, how long they spent on each page, what pages they visited, if they were on mobile or desktop, operating system and what browser they were using. I really dont need most of this information but it's nice to see if a company just clicked the link and closed the site or if they actually looked through my portfolio. Hopefully this will help someone else some day