---
title: Filter Matomo prepend site domain
url: "https://www.seopress.org/support/hooks/filter-matomo-prepend-site-domain/"
lang: en-US
updated: 2021-09-29
hook_name: seopress_matomo_site_domain
required_version: 3.8.5
---

# Filter Matomo prepend site domain

- **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)



