Not open source but I'd highly recommend: https://usefathom.com/

Their Fathom Lite is open source https://github.com/usefathom/fathom