1. 要進行二次開發,matomo必定需要透過git直接拉取github branch來下載matomo的原始碼,不然在進行建立API時會出現錯誤訊息: "This development feature requires Matomo to be checked out from git. For more information please visit https://developer.matomo.org/guides/getting-started-part-1." 該問題無法透過關閉git檢查來解決,在建立時要注意 2. /var/www/matomo/tmp/cache/ 以下的資料夾,尤其是/var/www/matomo/tmp/cache/tracker/的權限需要給予775以上,不然進行./console generate:controller建立二次開發用plugin時會失敗 3. Plugin建立後存在位置為 Matomo/plugins/MyCustomAPI/ 依照建立的種類差異,結構也會有所不同 4. 資料庫結構文件連結https://developer.matomo.org/guides/database-schema 5. 建立新API method流程 1. 使用./console generate:plugin建立空的plugin並且進行註冊 2. 使用./console generate:api將範本api文件新增至建立的plugin中