—=== ADVANCED USERS ONLY ===—
After some research, I determined that the current version of the Piwik API (used by WP-Piwik) doesn’t support this option — track visitors across all subdomains of [site name]. However, I was able to make the changes in my own copy (of Piwik and WP-Piwik). Experienced repo users are welcome to take advantage of them:
1. The changes to Piwik can be found here:
https://github.com/claytondaley/piwik/tree/api-javascript-tag-options
Please note:
– I’m working off the 2.0 (currently beta 1) branch. The changes should work with earlier versions, but you’ll have to apply them yourself.
– I have submitted this improvement to the Piwik team for inclusion in future versions. This may not happen or the final version may be different (and incompatible with the WP-Piwik changes found below).
2. The changes to WP-Piwik can be found here:
https://github.com/claytondaley/wp-piwik/tree/admin-tracking-options
Please note:
– I forked 0.9.9.5 — the most recent version available on Github — so you’ll get an upgrade request in WP (which will likely break my changes). I’ll get it updated to 0.9.9.6 (and future versions) when available.
– To maximize readability, I hard-coded the UI update JS into the page template. If someone wants to move it to a more WP-appropriate place, feel free to send me a Pull request.
PLEASE NOTE: I’m happy to fix bugs as I too want this code functioning properly. However, I don’t have time to help users who break their own system because they don’t understand how to use these resources. PLEASE backup your systems before making these changes and ONLY undertake this upgrade if you have sufficient experience with version control systems.
THESE MODIFICATIONS ARE PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.