Questions on internals of Piwik

Hi all,

I have a list of questions about Piwik. I tried finding the questions in the documentation, but could not find explicit answers. Any help would greatly be apprecieted:

  1. Is the ‘browser window closed’ event used as a page view end time in calculating the page view duration? if not, how does Piwik calculate how much time was spent on a certain page?

  2. I noticed that some of the reports can be exported from the UI, but can this be done somehow from the command line (in order to automate it) ?

  3. If the tracked website is in a cluster environement, behind a load balancer, how would Piwik handle this (two applications that should be monitored as one).

Thanks in advance.

  1. time on page is accurately tracked when there is a following page view. Otherwise, what you askfor is covered in: Support Ping requests to report a better 'time on page' · Issue #2041 · matomo-org/matomo · GitHub

  2. Yes you can use the API in command line:

  3. see New to Piwik - Analytics Platform - Matomo