PDF rausgenommen
This commit is contained in:
@ -0,0 +1,18 @@
|
||||
<?php
|
||||
/**
|
||||
* Matomo - free/libre analytics platform
|
||||
*
|
||||
* @link https://matomo.org
|
||||
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
|
||||
*/
|
||||
|
||||
namespace Piwik\Plugins\IntranetMeasurable;
|
||||
|
||||
class IntranetMeasurable extends \Piwik\Plugin
|
||||
{
|
||||
public function isTrackerPlugin()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,23 @@
|
||||
<?php
|
||||
/**
|
||||
* Matomo - free/libre analytics platform
|
||||
*
|
||||
* @link https://matomo.org
|
||||
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
|
||||
*/
|
||||
|
||||
namespace Piwik\Plugins\IntranetMeasurable;
|
||||
|
||||
use Piwik\Settings\Setting;
|
||||
|
||||
class MeasurableSettings extends \Piwik\Plugins\WebsiteMeasurable\MeasurableSettings
|
||||
{
|
||||
/** @var Setting */
|
||||
public $trustvisitorcookies;
|
||||
|
||||
protected function shouldShowSettingsForType($type)
|
||||
{
|
||||
return $type === Type::ID;
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,46 @@
|
||||
<?php
|
||||
/**
|
||||
* Matomo - free/libre analytics platform
|
||||
*
|
||||
* @link https://matomo.org
|
||||
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
|
||||
*/
|
||||
|
||||
namespace Piwik\Plugins\IntranetMeasurable\Tracker;
|
||||
|
||||
use Piwik\Container\StaticContainer;
|
||||
use Piwik\Exception\UnexpectedWebsiteFoundException;
|
||||
use Piwik\Plugins\IntranetMeasurable\Type;
|
||||
use Piwik\Tracker\Cache;
|
||||
use Piwik\Tracker\Request;
|
||||
|
||||
class RequestProcessor extends \Piwik\Tracker\RequestProcessor
|
||||
{
|
||||
private $didEnableSetting = false;
|
||||
private $settingName = 'ini.Tracker.trust_visitors_cookies';
|
||||
|
||||
public function manipulateRequest(Request $request)
|
||||
{
|
||||
try {
|
||||
$site = Cache::getCacheWebsiteAttributes($request->getIdSite());
|
||||
} catch (UnexpectedWebsiteFoundException $e) {
|
||||
return;
|
||||
}
|
||||
$isIntranetSite = !empty($site['type']) && $site['type'] === Type::ID;
|
||||
|
||||
if ($isIntranetSite && !StaticContainer::get($this->settingName)) {
|
||||
$this->setTrustCookiesSetting(1);
|
||||
$this->didEnableSetting = true;
|
||||
} elseif ($this->didEnableSetting) {
|
||||
// we reset it in case of bulk tracking with different sites etc
|
||||
$this->setTrustCookiesSetting(0);
|
||||
$this->didEnableSetting = false;
|
||||
}
|
||||
}
|
||||
|
||||
private function setTrustCookiesSetting($value)
|
||||
{
|
||||
StaticContainer::get('Piwik\Tracker\VisitorRecognizer')->setTrustCookiesOnly($value);
|
||||
StaticContainer::getContainer()->set($this->settingName, $value);
|
||||
}
|
||||
}
|
20
msd2/tracking/piwik/plugins/IntranetMeasurable/Type.php
Normal file
20
msd2/tracking/piwik/plugins/IntranetMeasurable/Type.php
Normal file
@ -0,0 +1,20 @@
|
||||
<?php
|
||||
/**
|
||||
* Matomo - free/libre analytics platform
|
||||
*
|
||||
* @link https://matomo.org
|
||||
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
|
||||
*
|
||||
*/
|
||||
namespace Piwik\Plugins\IntranetMeasurable;
|
||||
|
||||
class Type extends \Piwik\Measurable\Type
|
||||
{
|
||||
const ID = 'intranet';
|
||||
protected $name = 'IntranetMeasurable_Intranet';
|
||||
protected $namePlural = 'IntranetMeasurable_Intranets';
|
||||
protected $description = 'IntranetMeasurable_IntranetDescription';
|
||||
protected $howToSetupUrl = '?module=CoreAdminHome&action=trackingCodeGenerator';
|
||||
|
||||
}
|
||||
|
@ -0,0 +1,7 @@
|
||||
{
|
||||
"IntranetMeasurable": {
|
||||
"Intranet": "Intranet Webseite",
|
||||
"Intranets": "Intranet Webseiten",
|
||||
"IntranetDescription": "Ein messbares Intranet ist wie eine Webseite, allerdings in einem internen Netzwerk gehostet."
|
||||
}
|
||||
}
|
@ -0,0 +1,7 @@
|
||||
{
|
||||
"IntranetMeasurable": {
|
||||
"Intranet": "Εσωτερικός ιστότοπος",
|
||||
"Intranets": "Εσωτερικοί ιστότοποι",
|
||||
"IntranetDescription": "Οι εσωτερικοί ιστότοποι καταμετρώνται όπως όλοι οι άλλοι αλλά βρίσκονται εντός τοπικού δικτύου."
|
||||
}
|
||||
}
|
@ -0,0 +1,7 @@
|
||||
{
|
||||
"IntranetMeasurable": {
|
||||
"Intranet": "Intranet Website",
|
||||
"Intranets": "Intranet Websites",
|
||||
"IntranetDescription": "An intranet measurable is just like a website but hosted on an internal network."
|
||||
}
|
||||
}
|
@ -0,0 +1,7 @@
|
||||
{
|
||||
"IntranetMeasurable": {
|
||||
"Intranet": "Intranet del sitio web",
|
||||
"Intranets": "Intranet de sitios web",
|
||||
"IntranetDescription": "Una intranet medible es como un sitio web pero alojado en una red interna."
|
||||
}
|
||||
}
|
@ -0,0 +1,7 @@
|
||||
{
|
||||
"IntranetMeasurable": {
|
||||
"Intranet": "Site Intranet",
|
||||
"Intranets": "Sites Intranet",
|
||||
"IntranetDescription": "Un site Intranet est comme un site web classique, mais il est hébergé sur un réseau local"
|
||||
}
|
||||
}
|
@ -0,0 +1,7 @@
|
||||
{
|
||||
"IntranetMeasurable": {
|
||||
"Intranet": "Sito Intranet",
|
||||
"Intranets": "Siti Intranet",
|
||||
"IntranetDescription": "Un misurabile intranet è proprio come un sito web, ma è ubicato in una rete interna."
|
||||
}
|
||||
}
|
@ -0,0 +1,7 @@
|
||||
{
|
||||
"IntranetMeasurable": {
|
||||
"Intranet": "イントラネットのウェブサイト",
|
||||
"Intranets": "イントラネットのウェブサイト",
|
||||
"IntranetDescription": "測定可能なイントラネットは、ウェブサイトと似ていますが、社内ネットワーク上にホストされています。"
|
||||
}
|
||||
}
|
@ -0,0 +1,7 @@
|
||||
{
|
||||
"IntranetMeasurable": {
|
||||
"Intranet": "Intranet Website",
|
||||
"Intranets": "Intranet Websites",
|
||||
"IntranetDescription": "Een meetbaar intranet is hetzelfde als een website, alleen gehost op een intern netwerk."
|
||||
}
|
||||
}
|
@ -0,0 +1,7 @@
|
||||
{
|
||||
"IntranetMeasurable": {
|
||||
"Intranet": "Site da intranet",
|
||||
"Intranets": "Sites da intranet",
|
||||
"IntranetDescription": "Um mensurável de intranet é como um site, mas disponibilizado numa rede interna."
|
||||
}
|
||||
}
|
@ -0,0 +1,7 @@
|
||||
{
|
||||
"IntranetMeasurable": {
|
||||
"Intranet": "Вебсайт Интранет",
|
||||
"Intranets": "Вебсайты Интранет",
|
||||
"IntranetDescription": "Измерение Интранет такое же, как для Веб, но размещено во внутренней сети."
|
||||
}
|
||||
}
|
@ -0,0 +1,7 @@
|
||||
{
|
||||
"IntranetMeasurable": {
|
||||
"Intranet": "Sajt Intranet",
|
||||
"Intranets": "Sajte Intranet",
|
||||
"IntranetDescription": "Një përmasë intranet është njësoj si ato për një sajt, por strehuar në një rrjet të brendshëm."
|
||||
}
|
||||
}
|
@ -0,0 +1,7 @@
|
||||
{
|
||||
"IntranetMeasurable": {
|
||||
"Intranet": "Intranet Web Sitesi",
|
||||
"Intranets": "Intranet Web Siteleri",
|
||||
"IntranetDescription": "Bir Intranet ölçülebiliri bir iç ağda bulunan bir web sitesine benzer."
|
||||
}
|
||||
}
|
@ -0,0 +1,7 @@
|
||||
{
|
||||
"IntranetMeasurable": {
|
||||
"Intranet": "內部網站",
|
||||
"Intranets": "內部網站",
|
||||
"IntranetDescription": "內部網站就像一般的網站,但是架設在內部網路內。"
|
||||
}
|
||||
}
|
@ -0,0 +1,4 @@
|
||||
{
|
||||
"name": "IntranetMeasurable",
|
||||
"description": "Analytics for the web: lets you measure and analyze intranet websites."
|
||||
}
|
Reference in New Issue
Block a user