Skip to content

Commit 67ea734

Browse files
committed
Fix issue 19983
1 parent 1e86f88 commit 67ea734

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ public function getPageTrackingData($accountId)
206206
{
207207
return [
208208
'optPageUrl' => $this->getOptPageUrl(),
209-
'isAnonymizedIpActive' => (int)$this->_googleAnalyticsData->isAnonymizedIpActive(),
209+
'isAnonymizedIpActive' => $this->_googleAnalyticsData->isAnonymizedIpActive(),
210210
'accountId' => $this->escapeHtmlAttr($accountId, false)
211211
];
212212
}

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)