Matomo Web analytics | |
Matomo, formerly known as Piwik, is a downloadable, Free (GPL licensed) web analytics software platform. It provides detailed reports on your website and its visitors, including the search engines and keywords they used, the language they speak, which pages they like, the files they download and so much more. Matomo (Piwik) aims to be an open source alternative to Google Analytics. Like Tiki, Matomo is written in PHP and uses a MySQL database. |
Integrating Matomo with Tiki | |
To record visitors, visits and page views in Matomo, you must add a Tracking code in all your pages. Matomo recommend to use the standard JavaScript Tracking tag. The documentation is here: Copy the code from Matomo and paste in Admin -> Look & Feel -> General Layout or Customization (depends on your version of Tiki) -> Custom End of Code surrounded by literal tags, as shown below: In Tiki5 or newer Copy to clipboard
The literal tags indicate to the Smarty template engine not to interpret the code and to pass it as-is. direct URL to access Custom End of Code is: tiki-admin.php?page=look&cookietab=2 Only use the tracking code for users that do not have full admin rights Copy to clipboard
|
Going Further | |
To identify users logged into Tiki and track their activity, modify the default Matomo code to pass the Tiki username to Matomo . This is done by adding the following in Admin -> Look & Feel -> Custom End of Code. Note that the Tiki username must be passed before 'trackPageView' in the default Matomo code to track user activity reliably. Pass Tiki username to Matomo, see analytics of user activity in Matomo reports Copy to clipboard
Matomo Visitor Log with Tiki user information
|
Embedding Matomo report on a wiki page | |
It is possible to embed Matomo report into wiki page.
You have now all the necessary and basic code that should be placed in a Tiki Wiki page.
|
Visits Summary, Visits Overview (with graph) for doc.tiki.org (previous day) | |
|
Visitor Setting, Screen Resolution for doc.tiki.org (previous day) | |
|
Actions, Pages for doc.tiki.org (previous day) | |
See also Template Tricks Related: Google Analytics |