• Resolved andrew55

    (@andrew55)


    I have 3 WordPress installations on 1 domain, such as:

    mysite.com
    mysite.com/community
    mysite.com/staff

    I have the Matomo plugin installed in each installation.

    What is the recommended method for tracking these WordPress installations?

    In Matomo admin, can I have one site and include all 3 domains in the site settings page?

    Or, does each WordPress installation need to have it’s own site in Matomo admin?

    Thanks for any suggestions.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter andrew55

    (@andrew55)

    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.

    Plugin Author braekling

    (@braekling)

    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.

    Thread Starter andrew55

    (@andrew55)

    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!

    Plugin Author braekling

    (@braekling)

    Great, good to hear! 🙂

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘multiple wp installs on same domain?’ is closed to new replies.