On our site I’m using Piwik.
I also use Webtrees
Webtrees uses queries on a mysql database to show genealogic data of my family

Can Piwik show these queries?
I.e. can Piwik show which pages from the database is opened.

You need to ask this question in one of the Webtrees forums.

If not, ask them why not, since PhpGedView version 4.3.0 can do it, and has been able to do so since Sept. 2011.

The solution: