Il y a 389 articles et 19 utilisateurs inscrits (ce bandeau est défini dans MediaWiki:Sitenotice)

« Matomo/Debug » : différence entre les versions

De AJLSM
Aller à la navigation Aller à la recherche
Page créée avec « = Debugging Matomo = == Test réception tracking == <syntaxhighlight lang="bash"> curl -I "http://matomo-recette.ajlsm.com/matomo.php?idsite=1&rec=1" </syntaxhighlight>... »
 
Aucun résumé des modifications
 
Ligne 1 : Ligne 1 :
= Debug Matomo =


= Debugging Matomo =
== Tester la réception du tracker ==
 
== Test réception tracking ==
 
<syntaxhighlight lang="bash">
<syntaxhighlight lang="bash">
curl -I "http://matomo-recette.ajlsm.com/matomo.php?idsite=1&rec=1"
curl -I "http://matomo-recette.ajlsm.com/matomo.php?idsite=1&rec=1"
</syntaxhighlight>
</syntaxhighlight>


Résultat attendu :
Réponse attendue :
 
<syntaxhighlight>
<syntaxhighlight>
HTTP/1.1 200 OK
HTTP/1.1 200 OK
Ligne 15 : Ligne 12 :
</syntaxhighlight>
</syntaxhighlight>


== Vérifier tracker JS ==
== Vérifier l'injection du code ==
<syntaxhighlight lang="bash">
curl -s http://ad64.pleade.com/ | grep -i -E "matomo.js|matomo.php|_paq"
</syntaxhighlight>
 
== Vérifier la résolution DNS ==
<syntaxhighlight lang="bash">
getent hosts matomo-recette.ajlsm.com
</syntaxhighlight>


== Vérifier la config Drupal ==
<syntaxhighlight lang="bash">
<syntaxhighlight lang="bash">
curl -s http://ad64.pleade.com | grep _paq
drush config:get matomo.settings
</syntaxhighlight>
</syntaxhighlight>

Dernière version du 11 mars 2026 à 08:21

Tester la réception du tracker

[modifier | modifier le wikicode]
curl -I "http://matomo-recette.ajlsm.com/matomo.php?idsite=1&rec=1"

Réponse attendue :

HTTP/1.1 200 OK
Content-Type: image/gif

Vérifier l'injection du code

[modifier | modifier le wikicode]
curl -s http://ad64.pleade.com/ | grep -i -E "matomo.js|matomo.php|_paq"

Vérifier la résolution DNS

[modifier | modifier le wikicode]
getent hosts matomo-recette.ajlsm.com

Vérifier la config Drupal

[modifier | modifier le wikicode]
drush config:get matomo.settings