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)

Gallery of typical tracking requests, as seen in devtools.

5/1/2024

0 Comments

 
Are you monitoring a website with Matomo? Open a page from your website in a browser, then click browser>>devtools.  The network tab (browser>>devtools>>network) will show Matomo's actual tracking requests.  

A fun extension which also shows this is Chrome Tagbirds. I'm paranoid of browser extensions (because of security), so I only use this on an isolated machine which never runs any of my password secured applications.

I have fomatted these requests by adding linebreaks.

#1
From a single page, send http requests to two Matomo instances at the same time 
As described at https://matomo.org/faq/how-to/how-do-i-send-tracking-requests-to-two-or-more-matomo-servers/ 

The Javascript Tracker Code
<!-- Matomo -->
<script>
var _paq = window._paq = window._paq || [];
/* tracker methods like "setCustomDimension" should be called before "trackPageView" */
_paq.push(['trackPageView']);
_paq.push(['enableLinkTracking']);
(function() {
var u="//littlefurnace.com/matomo/";
_paq.push(['setTrackerUrl', u+'matomo.php']);
_paq.push(['setSiteId', '2']);
var secondaryTracker = 'https://tatll.matomo.cloud/matomo.php';
var secondaryWebsiteId = '6';
// Also send all of the tracking data to the new Matomo server
_paq.push(['addTracker', secondaryTracker, secondaryWebsiteId]);
var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
g.async=true; g.src=u+'matomo.js'; s.parentNode.insertBefore(g,s);
})();
</script>
<!-- End Matomo Code -->

Request One

POST https://tatll.matomo.cloud/matomo.php?
action_name=pikL&
idsite=6&
rec=1&
r=357217&
h=11&
m=36&
s=48&
url=https://pikl.us/&
_id=8e2306f5d48d5003&
_idn=0&
send_image=0&
_refts=1714581408&
_ref=https://github.com/atom-box/bpikl&
pv_id=jVb0xW&
fa_pv=1&
fa_fp[0][fa_vid]=Tl9OUd&
fa_fp[0][fa_name]=urlEnterer&
fa_fp[0][fa_fv]=1&
pf_net=0&
pf_srv=266&
pf_tfr=41&
uadata={}&
pdf=1&
qt=0&
realp=0&
wma=0&
fla=0&
java=0&
ag=0&
cookie=1&
res=1920x1080

Request Two
POST https://littlefurnace.com/matomo/matomo.php?
action_name=pikL&
idsite=2&
rec=1&
r=473795&
h=11&
m=36&
s=48&
url=https://pikl.us/&
_id=03690a3479d38e0e&
_idn=0&
send_image=0&
_refts=1714581408&POST https://littlefurnace.com/matomo/matomo.php?
action_name=pikL&
idsite=2&
rec=1&
r=473795&
h=11&
m=36&
s=48&
url=https://pikl.us/&
_id=03690a3479d38e0e&
_idn=0&
send_image=0&
_refts=1714581408&
_ref=https://github.com/atom-box/bpikl&
pv_id=zC90X6&
fa_pv=1&
fa_fp[0][fa_vid]=Tl9OUd&
fa_fp[0][fa_name]=urlEnterer&
fa_fp[0][fa_fv]=1&
pf_net=0&
pf_srv=266&
pf_tfr=41&
uadata={}&
pdf=1&
qt=0&
realp=0&
wma=0&
fla=0&
java=0&
ag=0&
cookie=1&
res=1920x1080POST https://littlefurnace.com/matomo/matomo.php?
action_name=pikL&
idsite=2&
rec=1&
r=473795&
h=11&
m=36&
s=48&
url=https://pikl.us/&
_id=03690a3479d38e0e&
_idn=0&
send_image=0&
_refts=1714581408&
_ref=https://github.com/atom-box/bpikl&
pv_id=zC90X6&
fa_pv=1&
fa_fp[0][fa_vid]=Tl9OUd&
fa_fp[0][fa_name]=urlEnterer&
fa_fp[0][fa_fv]=1&
pf_net=0&
pf_srv=266&
pf_tfr=41&
uadata={}&
pdf=1&
qt=0&
realp=0&
wma=0&
fla=0&
java=0&
ag=0&
cookie=1&
res=1920x1080
_ref=https://github.com/atom-box/bpikl&
pv_id=zC90X6&
fa_pv=1&
fa_fp[0][fa_vid]=Tl9OUd&
fa_fp[0][fa_name]=urlEnterer&
fa_fp[0][fa_fv]=1&
pf_net=0&
pf_srv=266&
pf_tfr=41&
uadata={}&
pdf=1&
qt=0&
realp=0&
wma=0&
fla=0&
java=0&
ag=0&
cookie=1&
res=1920x1080


#2
A heatmaps/screenrecording
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