Tracking exact time closing

Hello everybody,

I began to work with Matomo few days ago, and I would like to track different things, like

  • When the user quit the page
  • When he does so, which

    he was on.

I’m pretty sure that the first one is easy to resolve. I already tryed to use _paq.push(['enableHeartBeatTimer']);
but it doesn’t seems to work, as I still get an average time with the condition that I opened several times the page, and not only one.

I hope you guys can help me :slight_smile:

Thank for reading me

Ps: English isn’t my native language, I hope you’ll forgive my mistakes