---
title: Filtrer le domaine du site pré-ajouté dans Matomo
url: "https://www.seopress.org/fr/support/hooks/filtrer-le-domaine-du-site-pre-ajoute-dans-matomo/"
lang: fr-FR
updated: 2020-03-24
hook_name: seopress_matomo_site_domain
required_version: 3.8.5
---

# Filtrer le domaine du site pré-ajouté dans Matomo

- **Hook name:** `seopress_matomo_site_domain`
- **Required version:** 3.8.5

```php
function sp_matomo_site_domain($html) {
	$html = "_paq.push(['setDocumentTitle', document.domain + '/' + document.title]);\n";
	return $html;
}
add_filter('seopress_matomo_site_domain', 'sp_matomo_site_domain');
```

Source: [https://gist.github.com/wp-seopress/a9b05dd135db92bd00f40356a47802cc](https://gist.github.com/wp-seopress/a9b05dd135db92bd00f40356a47802cc)



