Title: Multisite: Wrong Site-Ids
Last modified: December 5, 2022

---

# Multisite: Wrong Site-Ids

 *  [heimpixel](https://wordpress.org/support/users/heimpixel/)
 * (@heimpixel)
 * [3 years, 5 months ago](https://wordpress.org/support/topic/multisite-wrong-site-ids/)
 * Hi there. I have a multisite. When creating a new site, I use “MultiSite Clone
   Duplicator” to clone a template site. I’ve been doing this for a while now, and
   everything worked fine.
 * But at some point, there must have been a change in how Matomo assigns Site-IDS.
   
   All cloned sites get the Matomo-Site ID from the template. (Screenshot here: 
   [https://ibb.co/gFYJK9d](https://ibb.co/gFYJK9d))
 * If I change the Site-ID in options.php, matomo backend errors, that site id is
   not registered.
 * To code a workaround: Is there a hook or a function, that lets me register a 
   new site ID to Matomo backend? How does this normally happen?
 * I can change all sites matomo-ids programatically, but I would have to register
   them somehow. Thanks for your efforts.

The topic ‘Multisite: Wrong Site-Ids’ is closed to new replies.

 * ![](https://ps.w.org/wp-piwik/assets/icon-256x256.png?rev=3529668)
 * [Connect Matomo - Analytics Dashboard for WordPress](https://wordpress.org/plugins/wp-piwik/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-piwik/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-piwik/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-piwik/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-piwik/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-piwik/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [heimpixel](https://wordpress.org/support/users/heimpixel/)
 * Last activity: [3 years, 5 months ago](https://wordpress.org/support/topic/multisite-wrong-site-ids/)
 * Status: not resolved