Data Whimsy
  • Home
  • What is Matomo
  • Contact
  • Custom Reports
  • Connect Matomo to other software
  • CLI API etc
  • Matomo Tag Manager Simple Guide
  • Lyn Only
  • Troubleshooting + Deploying Matomo
  • Weird Data
  • Why is data in Matomo giving different numbers than Google Analytics
  • The Dashboard
  • Moving the Data
  • Book Club Forum

Without the dashboard

The top slot of your browser can send requests to Tracking API & Reporting API
The command line of your browser can accept direct Matomo input (e.g. the PHP ./console command).
On this page are a variety of things you can do without ever touching the visual dashboard (Matomo GUI)

Curl examples with POST for Matomo

8/30/2024

0 Comments

 

curl -X POST "https://littlefurnace.com/matomo/index.php?module=API&method=MultiSites.getOne&idSite=2&period=range&date=2024-06-28,2024-08-28&format=JSON" -H "Content-Type: application/x-www-form-urlencoded" --data 'token_auth=???????????????'
curl -X POST "https://littlefurnace.com/matomo/index.php?module=API&method=MultiSites.getAll&period=year&date=yesterday&format=JSON" -H "Content-Type: application/x-www-form-urlencoded" --data 'token_auth=REDACTED'
curl -X POST "https://littlefurnace.com/matomo/index.php?module=API&method=MultiSites.getAll&period=year&date=yesterday&format=JSON" -H "Content-Type: application/x-www-form-urlencoded" --data 'token_auth=???????????????'
​
0 Comments

Printing the processes with PS

8/5/2024

0 Comments

 
htop     # Makes a dynamic dashboard but is not easy to log or print out from

ps -aux | awk '{ print $1, $3 }'  # good for printing/logging

ps -aux | awk '{ $11 = substr($11, 1, 16); print }' inputfile
ps -aux | awk '{ $11 = substr($11, 1, 16); printf "%-15s%-15s%-15s%-15s%-15s%-15s%-15s%-15s%-15s%-15s%-15s\n", $1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11 }' | head
ps -aux | awk '{ $11 = substr($11, 1, 16); printf "%-15s%15s%5s%5s%11s%5s%5s%8s%8s%8s%10s\n", $11, $2, $3, $4, $5, $6, $7, $8, $9, $10, $1 }' | sort -nk +5 | grep php
echo "USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND" ; ps -aux | sort -nrk +5 | grep php > PATH/TOYOUR/FILE.txt
0 Comments

    Author

    Evan Genest

    Archives

    November 2024
    August 2024
    May 2024
    March 2024
    February 2024
    November 2023
    October 2023
    September 2023
    August 2023

    Categories

    All

Powered by Create your own unique website with customizable templates.
  • Home
  • What is Matomo
  • Contact
  • Custom Reports
  • Connect Matomo to other software
  • CLI API etc
  • Matomo Tag Manager Simple Guide
  • Lyn Only
  • Troubleshooting + Deploying Matomo
  • Weird Data
  • Why is data in Matomo giving different numbers than Google Analytics
  • The Dashboard
  • Moving the Data
  • Book Club Forum