Block/Snippets.php
public function getTrackingData()
    {
        return [
            'product'      => $this->getCurrentProduct(),
            'category'     => $this->getCategory(),
            'store'        => $this->getStoreData(),
            'search'       => $this->getSearchData(),
            'exchangeRate' => $this->getExchangeRate(),
            'slug'         => $this->getStoreSlug(),
        ];
    }
public function getTrackingData()
    {
        return [
            'product'      => $this->getCurrentProduct(),
            'category'     => $this->getCategory(),
            'store'        => $this->getStoreData(),
            'search'       => $this->getSearchData(),
            'exchangeRate' => $this->getExchangeRate(),
            'slug'         => $this->getStoreSlug(),
        ];
    }
public function getTrackingData ( ) { return [ 'product' => $ this -> getCurrentProduct ( ) , 'category' => $ this -> getCategory ( ) , 'store' => $ this -> getStoreData ( ) , 'search' => $ this -> getSearchData ( ) , 'exchangeRate' => $ this -> getExchangeRate ( ) , 'slug' => $ this -> getStoreSlug ( ) , ] ; }
Get Tracking Data

@return mixed
@throws \Exception
Get Tracking Data