Data
Magento\GoogleAdwords\Helper\Data
What it does
This helper class manages Google AdWords conversion tracking integration for Magento 2.
Developers use it to retrieve AdWords configuration settings (conversion ID, language, format, colors), check if tracking is enabled, and handle conversion values (either dynamic order values or constant amounts).
It's primarily used in checkout success pages and conversion tracking blocks to send order data to Google AdWords.
Public Methods
- isGoogleAdwordsActive()
- getLanguageCodes()
- convertLanguageCodeToLocaleCode()
- getConversionJsSrc()
- getConversionImgSrc()
- getConversionId()
- getConversionLanguage()
- getConversionFormat()
- getConversionColor()
- getConversionLabel()
- getConversionValueType()
- isDynamicConversionValue()
- getConversionValueConstant()
- getConversionValue()
- hasSendConversionValueCurrency()
- getConversionValueCurrency()