Matomo is a classic LAMP stack in most cases: Apache (or similar) web server creating the APIs, running in Linux. Windows works too - but the documentation defaults to giving Linux syntax. PHP language in the backend and persistent data with MySQL database (or similar: MariaDB, AWS MySQL, Azure Windows MySQL all work).
Most of your Matomo deployment is just generic code: you could erase it and lose nothing. The precious, precious data, lives entirely in the SQL database. This is great because it's portable. And because MySQL database is mature tech, there are tons of experienced admins and tons of online documentation. Here are some official migration guides: https://matomo.org/subcategory/migrate/ If you move your deployment, don't forget to also move the settings files. These are a small flat file, less than 1MB in many cases. But that's it. You can discard all of the Matomo PHP/Python/JS code and redownload from Matomo any time you need it.
0 Comments
A common use case is to connect Matomo to other software.
A quick overview first. Data flows out of Matomo by three possible routes, depending on the destination. (1) Some software, such as Looker Studio, ingests data from a spreadsheet which in turn can be sync'd to Matomo. (2) Other software, gets data by making requests to the API. (3) A third option to send the data is to make queries directly to the SQL database of Matomo. Read more about this overview here: https://matomo.org/guide/apis/export-data-to-other-tools/ The API is a good way - maybe the best. It's secure, it's maintainable, it has a nearly 1:1 correspondance with the widgets/dashboards/reports already visible in the Matomo interface. How to get started with the API: 1) The dashboard of your Matomo instance can build examples of many of the API calls. I usually use these as a stub or starting point. Go to Dashboard >> ⚙️ >> Platform >> API. Then find a method and click on JSON, XML, CSV, et al The most important API method for your purpose will probably be "Module Live" (scroll down on the page; there's hundreds of API calls to scroll through!) 2) Add the further details of the call using the syntax guide: https://developer.matomo.org/api-reference/reporting-api 3) Go to your third-party software settings and add the API call. You can follow Part 1, here, generally https://matomo.org/faq/how-to/faq_24536/ And the 3rd party software docs will help. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
June 2024
Categories |