Skip to content

Commit 38a4853

Browse files
ENGCOM-4313: Fix-issue-21292 Google Analytics isAnonymizedIpActive always true #21303
- Merge Pull Request #21303 from Nazar65/magento2:issue-21292 - Merged commits: 1. edb9c6e 2. 1e86f88 3. 67ea734
2 parents 310648c + 67ea734 commit 38a4853

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

app/code/Magento/GoogleAnalytics/Block/Ga.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,8 @@ public function getPageName()
7575
}
7676

7777
/**
78-
* Render regular page tracking javascript code
78+
* Render regular page tracking javascript code.
79+
*
7980
* The custom "page name" may be set from layout or somewhere else. It must start from slash.
8081
*
8182
* @param string $accountId

app/code/Magento/GoogleAnalytics/Helper/Data.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,6 @@ public function isGoogleAnalyticsAvailable($store = null)
4646
*/
4747
public function isAnonymizedIpActive($store = null)
4848
{
49-
return $this->scopeConfig->getValue(self::XML_PATH_ANONYMIZE, ScopeInterface::SCOPE_STORE, $store);
49+
return (bool)$this->scopeConfig->getValue(self::XML_PATH_ANONYMIZE, ScopeInterface::SCOPE_STORE, $store);
5050
}
5151
}

0 commit comments

Comments
 (0)