Hi, I am trying to develop a plugin but don’t seem to be able to start…
I have the plugin, it creates the DB tables it needs and then I am stuck. I registered a hook, it’s supposed to write to the DB when that gets executed, nothing happens and I can’t figure out how to find why.
In bullet points:
[li] At http://piwik.org/docs/plugins/ the link to “Enable debug logging and SQL profiling” is wrong, it should link to Troubleshooting - Analytics Platform - Matomo
[/li][li] At Troubleshooting - Analytics Platform - Matomo it should be added that except “screen” there are other options (file and database)
[/li][li] I enabled logging to file, now in piwik/tmp/logs/logger_message.htm I have SQL queries. However, these are all SELECT queries. New visitors are being tracked, so there should be INSERT queries into piwik_log_visit but they are not there.
[/li][li] I cannot even understand if the hook is being activated (‘Tracker.newVisitorInformation’ => ‘newVisitorInformation’) and my code in the newVisitorInformation function runs when a new visitor is recorded. If it does, is there an error in it and where is it logged?
[/li][li] The query I have there is not in the log (it is an INSERT too).
[/li][li] How can I display it on screen to verify it is correct?