Helper
Data
Magento\GoogleAnalytics\Helper\Data
What it does
This helper class provides methods to check Google Analytics configuration settings in Magento 2.
Developers use this class to determine if Google Analytics is enabled and properly configured with an account ID, and to check if IP anonymization is active for GDPR compliance.
It's commonly used in templates and blocks before rendering Google Analytics tracking code.
Public Methods
- isGoogleAnalyticsAvailable()
- isAnonymizedIpActive()