Analytics on local machine

Hello,

I would like to use analytic for a basic html website that will run locally on a PC.

Can someone let me know if it’s possible, and if there’s any example?

Many thanks