/**
  * @param MessageInterface $message
  * @param null $parameters
  */
 public function __construct(\Magento\Framework\App\Action\Context $context, \Magento\Framework\App\Config\ScopeConfigInterface $scopeConfig, \Magento\Customer\Model\Session $customerSession, \Magento\Checkout\Model\Session $checkoutSession, \Magento\Framework\Registry $registry)
 {
     $this->_scopeConfig = $scopeConfig;
     $this->_customerSession = $customerSession;
     $this->_context = $context;
     $this->_coreRegistry = $registry;
     $this->_checkoutSession = $checkoutSession;
     $this->fullActionName = $this->_context->getRequest()->getFullActionName();
     $this->addVariable('pageType', $this->fullActionName);
     $this->addVariable('list', 'other');
     $this->setCustomerDataLayer();
     $this->setProductDataLayer();
     $this->setCategoryDataLayer();
     $this->setCartDataLayer();
 }