Make property  `$siteId;` of `type="string"`. You can check in code if value from database `is_numeric` and if it is, means that its Piwik id, if `is_string` then Google Analitics. This way you can remove property $googleSiteId;