/** * Generates the environment object which contains basis data about the site. */ public function getEnvironmentData() { global $wp_version; $environment = GooglePublisherPluginUtils::getUrlsToAnalyze(); $environment['siteId'] = $this->configuration->getSiteId(); $environment['pluginVersion'] = $this->plugin_version; $environment['wpVersion'] = $wp_version; $environment['hl'] = get_locale(); return $environment; }