protected function trackEcommerce($type = self::ECOMMERCE_TRANSACTION, array $options = [])
	{
        $this->addItem("ga('require', 'ecommerce');");
        $item = "ga('ecommerce:{$type}', { ";
        $item .= $this->assembleParameters($options);
        $item = rtrim($item, ', ') . " });";
        $this->addItem($item);
        $this->addItem("ga('ecommerce:send');");
	}
protected function trackEcommerce($type = self::ECOMMERCE_TRANSACTION, array $options = [])
	{
        $this->addItem("ga('require', 'ecommerce');");
        $item = "ga('ecommerce:{$type}', { ";
        $item .= $this->assembleParameters($options);
        $item = rtrim($item, ', ') . " });";
        $this->addItem($item);
        $this->addItem("ga('ecommerce:send');");
	}
protected function trackEcommerce ( $ type = self :: ECOMMERCE_TRANSACTION , array $ options = [ ] ) { $ this -> addItem ( "ga('require', 'ecommerce');" ) ; $ item = "ga('ecommerce:{$type}', { " ; $ item .= $ this -> assembleParameters ( $ options ) ; $ item = rtrim ( $ item , ', ' ) . " });" ; $ this -> addItem ( $ item ) ; $ this -> addItem ( "ga('ecommerce:send');" ) ; }
Track an ecommerce item.

@param string $type
@param array  $options

@return void
Track an ecommerce item .