After testing for a few days, I’ve realized that if I have multiple WordPress sites listed in the url section of one site (in Matomo settings), only the primary WordPress site is tracked. For example, if I have these 3 urls (from different WP installations on the same domain) in the URL area:
mysite.com
mysite.com/community
mysite.com/staff
…even if your plugin is enabled on all 3 WP installations, only mysite.com is tracked.
Any suggestions for getting the tracking in the other 2 WP sites to work properly?
I am currently using the javascript snippet from within Matomo to track all three WP sites (instead of your plugin). But, I would rather use your plugin for tracking WordPress as it has better, easier features to configure.
Thanks for any suggestions.
Did you check if the sites are estimated correctly? This is shown on the connection tab of WP-Matomo’s settings. The estimation is done by sending the blog URL to Matomo and asking for the site ID… maybe you always get the primary site’s ID because of the same hostname? (Also check the JavaScript code if different IDs appear there).
You can disable the auto-detection and choose the site manually by using the dropdown list. Maybe this already solves your issue.
On best practices how to configure such a setup within Matomo itself, please reach out to the Matomo community.
In each WP installation, I disabled auto-detection and selected main site. I put only 1 url (main domain) inside the Matomo admin area (outside of WP). Everything works great now. Thank you for the suggestions. Great plugin!