In previous places I worked, it might have been quite useful if I kept a record of what questions people interrupted me to ask, so I could look back on that and work out parts of my software than needed to be made easier to use or have documentation added. If I was using OP's tool to track this, I'd probably include "interruptions" where someone sent an email or slack message as well as those where someone came over in person.
You can't. At least not in modern open plan offices, nobody except management loves.
Showing a breakdown of where my time had gone using Toggl (literally 50% to interruptions) did the trick.
As @borntyping said "The purpose is tracking who is interrupting and why, not stopping interruptions, with the aim of finding patterns."