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)

Hit the Tracking API

8/11/2023

0 Comments

 
The main two API's to play with are the Tracking API and the Reporting API. These accept tracking signals and deliver dashboard reports, respectively.  Here we will use the former.

Pageviews

If you have a few sites, try manually simulating some pageviews. If you have three sites configured in Matomo, the following requests will send one pageview each to your three sites. Paste these into the top of your browser one at a time and hit Enter:
  • http://THISPARTISDESCRIBEDBELOW.com/matomo/matomo.php?rec=1&idsite=1
  • http://THISPARTISDESCRIBEDBELOW.com/matomo/matomo.php?rec=1&idsite=2
  • http://THISPARTISDESCRIBEDBELOW.com/matomo/matomo.php?rec=1&idsite=3

For the URL, it will be the same in all three cases.

This is because your pageview data is not sent to your websites, it is sent to your Matomo server, wherever you have deployed it.

So instead of THISPARTISDESCRIBEDBELOW, use this green part, from your tracking code:
(Matomo >> ⚙️ >> Measurables >> Tracking Code)
Picture
Goals

It is also possible to pack more into the parameters. Try triggering a Goal conversion in the HTTP Tracking API. Here is an example of a request that will track a Goal conversion for a Goal ID 1 and your Website ID 1.  Paste this into your browser URL slot (the white space at the top of Mozilla Firefox, Microsoft Edge, or similar:
www.example.com/matomo.php?&idsite=1&rec=1&idgoal=1

Again, as in the prior example, you should replace the left end of this with whatever your site uses. Please find the full Tracking API documentation here: https://developer.matomo.org/api-reference/tracking-api  
0 Comments



Leave a Reply.

    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