Il y a 389 articles et 19 utilisateurs inscrits (ce bandeau est défini dans MediaWiki:Sitenotice)
« Matomo/Drupal » : différence entre les versions
Aller à la navigation
Aller à la recherche
Page créée avec « = Intégration Matomo dans Drupal 10 = == Installation module == <syntaxhighlight lang="bash"> composer require drupal/matomo drush en matomo -y </syntaxhighlight> == ... » |
Aucun résumé des modifications |
||
| Ligne 1 : | Ligne 1 : | ||
= Intégration Matomo dans Drupal = | |||
== Installation du module == | |||
== Installation module == | |||
<syntaxhighlight lang="bash"> | <syntaxhighlight lang="bash"> | ||
composer require drupal/matomo | composer require drupal/matomo | ||
| Ligne 10 : | Ligne 8 : | ||
== Configuration via Drush == | == Configuration via Drush == | ||
<syntaxhighlight lang="bash"> | <syntaxhighlight lang="bash"> | ||
drush config:set matomo.settings site_id "1" -y | drush config:set matomo.settings site_id "1" -y | ||
drush config:set matomo.settings url_http "http://matomo-recette.ajlsm.com/" -y | drush config:set matomo.settings url_http "http://matomo-recette.ajlsm.com/" -y | ||
drush config:set matomo.settings url_https "http://matomo-recette.ajlsm.com/" -y | drush config:set matomo.settings url_https "http://matomo-recette.ajlsm.com/" -y | ||
drush config:set matomo.settings visibility.user_account_mode 0 -y | |||
drush config:set matomo.settings visibility.user_role_mode 0 -y | |||
drush config:set matomo.settings privacy.donottrack false -y | |||
drush cr | drush cr | ||
</syntaxhighlight> | </syntaxhighlight> | ||
== | == Recherche interne Drupal == | ||
<syntaxhighlight lang="bash"> | |||
drush config:set matomo.settings track.site_search true -y | |||
drush cr | |||
</syntaxhighlight> | |||
== Vérification injection == | |||
<syntaxhighlight lang="bash"> | <syntaxhighlight lang="bash"> | ||
curl -s http://ad64.pleade.com | grep -i matomo | curl -s http://ad64.pleade.com/ | grep -i -E "matomo.js|matomo.php|_paq" | ||
</syntaxhighlight> | </syntaxhighlight> | ||
Version du 11 mars 2026 à 08:18
Intégration Matomo dans Drupal
Installation du module
composer require drupal/matomo
drush en matomo -y
Configuration via Drush
drush config:set matomo.settings site_id "1" -y
drush config:set matomo.settings url_http "http://matomo-recette.ajlsm.com/" -y
drush config:set matomo.settings url_https "http://matomo-recette.ajlsm.com/" -y
drush config:set matomo.settings visibility.user_account_mode 0 -y
drush config:set matomo.settings visibility.user_role_mode 0 -y
drush config:set matomo.settings privacy.donottrack false -y
drush cr
Recherche interne Drupal
drush config:set matomo.settings track.site_search true -y
drush cr
Vérification injection
curl -s http://ad64.pleade.com/ | grep -i -E "matomo.js|matomo.php|_paq"