Site-kit-wp: Review Multisite Compatibility

Created on 15 Jul 2019  路  8Comments  路  Source: google/site-kit-wp

The goal of this task is to have a set of issues that, once completed, will enable Site Kit to correctly function in WordPress multisite environments (with the plugin's network mode enabled).

A (non-comprehensive) list of things to look out for:

  • URLs should use self_admin_url() in most cases.
  • All Site Kit admin screens (except "splash" for authentication) must only be available to network administrators.
  • All Site Kit admin screens should be accessible in both network admin and site admin (with regards to the above capability requirements though).
  • All options and user options should be stored network-wide.
  • All Site Kit admin screens must work as expected in the network admin (similar to site admin).
  • The OAuth flow must work correctly (redirect URI must point to the network, Henhouse URI must be set accordingly).
  • Possibly, it should be indicated somewhere that Site Kit is running in network mode (especially when viewing Site Kit admin pages in the regular site admin).
  • Plugin activation/deactivation must work as expected.
  • While options and user options are generally stored per network, there might be some exceptions (e.g. post-related), which need to be stored per site still.

As work on this task progresses, issues will be added (referencing this task). After all issues have been fixed and the plugin works as expected on multisite, the final task will be to remove the multisite warning, thus enabling users to actually use the plugin in network mode.


_Do not alter or remove anything below. The following sections will be managed by moderators only._

Acceptance criteria

  • N/A

Implementation Brief

  • N/A

Changelog entry

  • N/A
Task

Most helpful comment

Add support for WordPress MultiSite. Thank you

All 8 comments

Add support for WordPress MultiSite. Thank you

Please add support for WordPress MultiSite.
Thank you

Eager to see this added! Very excited to use this on my networks.

looking forward to it.

Is multisite working? I can't see the script loading at all, even if it's checked to load in the settings page.

a must have feature
Some treat each subsite as a separate Google Analytics property but some use the same Google Analytics account (if subsites are categories example.com/subsite2/
Would be nice to have webmaster tools reporting for each subsite as well as globally.
Certainly global installation / management is critical.

Hope all is going well?

We use WPMU's Analytics plugin on our network. We also have mapped domains on several of our subsites, where clients install their own analytics code.

A few notes:

  • I'm still finding that Google Site Kit is not allowing access to admins or super admins, and only to the admin who added the integration. (Appears to other admins as though the integration hasn't been setup at all, which ca certainly cause confusion and redundant setups.)
    -- the biggest drawback is that other admins cannot review the analytics reports
  • WPMU's analytics plugin optionally uses API keys on the network level setup. This setup is ideal, as it prevents an expired login integration... as well as provides a greater data set within the Cloud API info panels.

  • we're having (recent) issues where Site Kit is finding the network UA code, and isn't allowing me to set the mapped domains UA code (option windows are grayed out, not allowing anything but the view to change.)
    -- my recent workaround is to use WPMU's Beehive on the subsite level, to select mapped domain UA account

...all in all, great plugin! I applaud the developers for taking the leap into this project!
-

Was this page helpful?
0 / 5 - 0 ratings