It is "by design" and a design decision I took, to make sure that even if users call setSiteId() "after" trackPageView() then Piwik still knows the site ID: The code is: [github.com]
It is not very good and so, maybe we could fix it so it still works with multiple site ids. For example we could "move up the queue" the setSiteId() only "once" before each call to trackPageView() or so. But it could become complicated. hence my decision to just "not support" it still SYNC code works
It is not very good and so, maybe we could fix it so it still works with multiple site ids. For example we could "move up the queue" the setSiteId() only "once" before each call to trackPageView() or so. But it could become complicated. hence my decision to just "not support" it still SYNC code works