Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/SitesManager/Controller.php')
-rw-r--r--plugins/SitesManager/Controller.php19
1 files changed, 15 insertions, 4 deletions
diff --git a/plugins/SitesManager/Controller.php b/plugins/SitesManager/Controller.php
index 6895ec9a10..2fadea1fe8 100644
--- a/plugins/SitesManager/Controller.php
+++ b/plugins/SitesManager/Controller.php
@@ -160,14 +160,20 @@ class Controller extends \Piwik\Plugin\ControllerAdmin
'showMatomoLinks' => $showMatomoLinks,
'trackingUrl' => $trackingUrl,
'idSite' => $this->idSite,
- 'consentManagerName' => false
+ 'consentManagerName' => false,
+ 'ga3Used' => false,
+ 'ga4Used' => false,
+ 'gtmUsed' => false
];
- $this->siteContentDetector->detectContent([SiteContentDetector::CONSENT_MANAGER]);
+ $this->siteContentDetector->detectContent([SiteContentDetector::ALL_CONTENT]);
if ($this->siteContentDetector->consentManagerId) {
$emailTemplateData['consentManagerName'] = $this->siteContentDetector->consentManagerName;
$emailTemplateData['consentManagerUrl'] = $this->siteContentDetector->consentManagerUrl;
}
+ $emailTemplateData['ga3Used'] = $this->siteContentDetector->ga3;
+ $emailTemplateData['ga4Used'] = $this->siteContentDetector->ga4;
+ $emailTemplateData['gtmUsed'] = $this->siteContentDetector->gtm;
$emailContent = $this->renderTemplateAs('@SitesManager/_trackingCodeEmail', $emailTemplateData, $viewType = 'basic');
@@ -248,18 +254,23 @@ class Controller extends \Piwik\Plugin\ControllerAdmin
'showMatomoLinks' => $showMatomoLinks,
'siteType' => $siteType,
'instruction' => SitesManager::getInstructionBySiteType($siteType),
- 'gtmUsed' => $gtmUsed,
+ 'gtmUsed' => false,
+ 'ga3Used' => false,
+ 'ga4Used' => false,
'googleAnalyticsImporterMessage' => $googleAnalyticsImporterMessage,
'tagManagerActive' => $tagManagerActive,
'consentManagerName' => false
];
- $this->siteContentDetector->detectContent([SiteContentDetector::CONSENT_MANAGER]);
+ $this->siteContentDetector->detectContent([SiteContentDetector::ALL_CONTENT]);
if ($this->siteContentDetector->consentManagerId) {
$templateData['consentManagerName'] = $this->siteContentDetector->consentManagerName;
$templateData['consentManagerUrl'] = $this->siteContentDetector->consentManagerUrl;
$templateData['consentManagerIsConnected'] = $this->siteContentDetector->isConnected;
}
+ $templateData['ga3Used'] = $this->siteContentDetector->ga3;
+ $templateData['ga4Used'] = $this->siteContentDetector->ga4;
+ $templateData['gtmUsed'] = $this->siteContentDetector->gtm;
return $this->renderTemplateAs('_siteWithoutDataTabs', $templateData, $viewType = 'basic');
}