/**
  * Push link tracking options to given tracker
  *
  * @param \Henhed\Piwik\Model\Tracker $tracker
  * @return \Henhed\Piwik\Observer\BeforeTrackPageViewObserver
  */
 protected function _pushLinkTracking(\Henhed\Piwik\Model\Tracker $tracker)
 {
     if ($this->_dataHelper->isLinkTrackingEnabled()) {
         $tracker->enableLinkTracking(true);
         $delay = $this->_dataHelper->getLinkTrackingDelay();
         if ($delay > 0) {
             $tracker->setLinkTrackingTimer($delay);
         }
     }
     return $this;
 }
 /**
  * Test \Henhed\Piwik\Helper\Data::isLinkTrackingEnabled
  *
  * Also covers `isTrackingEnabled'
  *
  * @param bool $linkEnabled
  * @param bool $enabled
  * @param string $hostname
  * @param int $siteId
  * @param bool $returnValue
  * @dataProvider isLinkTrackingEnabledDataProvider
  */
 public function testIsLinkTrackingEnabled($linkEnabled, $enabled, $hostname, $siteId, $returnValue)
 {
     $this->_prepareScopeConfigMock($enabled, $hostname, $siteId, $linkEnabled);
     $this->assertEquals($returnValue, $this->_helper->isLinkTrackingEnabled());
 }