Once Died!
I would like to ask one more question about Piwik. Since it is completely different from the past - has created another theme that would be the answers are not mixed.
Is it possible to “embed” in the piwik-party scripts to gather statistics?
For example we have a game server. We have existing scripts for collecting statistics of the number of players on the server on-line.
I wish that it were all in one place.
Or it will be easier through the API Piwik write on a separate page statistics?
If you can map your data to page views, you could use the setDocumentTitle / setCustomUrl to track specific events, and reports would appear in the Page views report.
If you provide an external API to wherever your data is stored that you can access within a Piwik plugin, then it would be possible.
For example, if you have an HTTP API to retrieve your data, you could retrieve the data from with in your Piwik plugin via curl (for example), convert it into the appropriate DataTable format, and then implement the appropriate Piwik API for plugin widget display.