Skip to content

Commit

Permalink
fix new checks for GA
Browse files Browse the repository at this point in the history
  • Loading branch information
sgiehl committed Sep 1, 2023
1 parent eda3142 commit 0fd36cd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions plugins/SitesManager/Controller.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
use Piwik\Plugins\SitesManager\SiteContentDetection\GoogleAnalytics4;
use Piwik\Plugins\SitesManager\SiteContentDetection\SiteContentDetectionAbstract;
use Piwik\Plugins\SitesManager\SiteContentDetection\WordPress;
use Piwik\Site;
use Piwik\SiteContentDetector;
use Piwik\Session;
use Piwik\SettingsPiwik;
Expand Down Expand Up @@ -236,7 +235,7 @@ public function siteWithoutDataTabs()
'consentManagerName' => false,
'defaultSiteDecoded' => [
'id' => $this->idSite,
'name' => Common::unsanitizeInputValue(Site::getNameFor($this->idSite)),
'name' => Common::unsanitizeInputValue($this->site->getName()),
],
'maxCustomVariables' => $maxCustomVariables,
'serverSideDoNotTrackEnabled' => $dntChecker->isActive()
Expand Down
2 changes: 1 addition & 1 deletion plugins/SitesManager/templates/_siteWithoutDataTabs.twig
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@

{% if googleAnalyticsImporterMessage is defined and googleAnalyticsImporterMessage is not empty %}
{{ googleAnalyticsImporterMessage|raw }}
{% elseif not ga3Used and not ga4Used %}
{% elseif not 'GoogleAnalytics3' in jsFrameworks and not 'GoogleAnalytics4' in jsFrameworks %}
<h3>{{ 'SitesManager_ImportDataFromGoogleAnalytics'|translate }}</h3>
<p>{{ 'SitesManager_ImportDataFromGoogleAnalyticsDescription'|translate('<a target="_blank" rel="noreferrer noopener" href="https://matomo.org/guide/installation-maintenance/import-google-analytics/">', '</a>')|raw }}</p>
{% endif %}
Expand Down

0 comments on commit 0fd36cd

Please sign in to comment.