Helper
Code
Magento\GoogleOptimizer\Helper\Code
What it does
This helper class retrieves Google Optimizer experiment code associated with Magento entities (products, categories, or CMS pages).
Developers use it to load tracking scripts for A/B testing and website optimization experiments by passing an entity model to getCodeObjectByEntity(), which returns the corresponding Google Optimizer code model.
Public Methods
- getCodeObjectByEntity()