• Resolved Henry Wright

    (@henrywright)


    Multisite can have many sites, each individually using Site Kit. The site addresses in my network install are all currently in the form subdomain.example.com. For example:

    – foo.example.com
    – bar.example.com

    A user has asked about the native WordPress domain mapping feature which will let them change the foo.example.com domain to a domain of their own choice such as foo.com.

    If I let the user use domain mapping, what will be the impact on their use of Site Kit? For example their existing property is foo.example.com

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support James Osborne

    (@jamesosborne)

    Hi there Henry,

    Great question, not something we get very often! If your user has have Site Kit connected on each subdomain within a multisite setup it will remain collecting data on that subdomain URL. If they then use domain mapping to mask the subdomain site they’ll have 2 ways to access wp-admin for the same WordPress install – with the same WP constants (ie. foo.com/wp-admin and bar.foo.com/wp-admin).

    If they access foo.com/wp-admin the plugin will recognize a URL change and prompt them to redo the plugin setup. They can then connect Site Kit once more and it will collect data based on that newly mapped domain. If however you revert and access wp-admin from the original multisite URL Site Kit will once again recognize a URL change.

    There is a canonical filter (googlesitekit_canonical_home_url) that can be applied to a site and this would ensure that only one domain is used. This would solve any of the possible issues your user may encounter if logging into the site using different wp-admin URLs.

    Let me know if the above answers your question or if you have any further queries on this. If you’re looking for assistance using the canonical filter I’d be happy to also help out. You’ll find some more details on this filter below:
    https://github.com/google/site-kit-wp/issues/2131

    Thread Starter Henry Wright

    (@henrywright)

    Thanks @jamesosborne for such a detailed reply. This is very helpful and the information on the canonical filter is appreciated

    Plugin Support James Osborne

    (@jamesosborne)

    No problem at all! If you have any further queries be sure to reach out.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘What is the impact of changing a site address in a network install?’ is closed to new replies.