Skip to content

Commit

Permalink
Fix issue 19983
Browse files Browse the repository at this point in the history
  • Loading branch information
Nazar65 committed Feb 20, 2019
1 parent 1e86f88 commit 67ea734
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/code/Magento/GoogleAnalytics/Block/Ga.php
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ public function getPageTrackingData($accountId)
{
return [
'optPageUrl' => $this->getOptPageUrl(),
'isAnonymizedIpActive' => (int)$this->_googleAnalyticsData->isAnonymizedIpActive(),
'isAnonymizedIpActive' => $this->_googleAnalyticsData->isAnonymizedIpActive(),
'accountId' => $this->escapeHtmlAttr($accountId, false)
];
}
Expand Down
2 changes: 1 addition & 1 deletion app/code/Magento/GoogleAnalytics/Helper/Data.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,6 @@ public function isGoogleAnalyticsAvailable($store = null)
*/
public function isAnonymizedIpActive($store = null)
{
return $this->scopeConfig->getValue(self::XML_PATH_ANONYMIZE, ScopeInterface::SCOPE_STORE, $store);
return (bool)$this->scopeConfig->getValue(self::XML_PATH_ANONYMIZE, ScopeInterface::SCOPE_STORE, $store);
}
}

0 comments on commit 67ea734

Please sign in to comment.