diff options
author | matt <matt@59fd770c-687e-43c8-a1e3-f5a4ff64c105> | 2011-04-30 04:50:12 +0400 |
---|---|---|
committer | matt <matt@59fd770c-687e-43c8-a1e3-f5a4ff64c105> | 2011-04-30 04:50:12 +0400 |
commit | 92fb203e15e342297e34413dce7d0a823f3937aa (patch) | |
tree | 84c9e0c43cb4dc6369b8f342366ce8e3a17ac887 | |
parent | e1d6fc0c9ab7969ab91f3e683e6a469e3a70e8d9 (diff) | |
parent | c85f8ebf127731013a0ec2058d89e36f26fc35ef (diff) |
BOOM last try ;)
-rw-r--r-- | core/Tracker/Visit.php | 17 |
1 files changed, 3 insertions, 14 deletions
diff --git a/core/Tracker/Visit.php b/core/Tracker/Visit.php index 9b45ac7844..ac3334051b 100644 --- a/core/Tracker/Visit.php +++ b/core/Tracker/Visit.php @@ -155,13 +155,7 @@ class Piwik_Tracker_Visit implements Piwik_Tracker_Visit_Interface else { $action = $this->newAction(); - $isActionValid = $this->handleAction($action); - - if(!$isActionValid) - { - printDebug('Not tracking this action as it is flagged as invalid.'); - return; - } + $this->handleAction($action); $someGoalsConverted = $goalManager->detectGoalsMatchingUrl($this->idsite, $action); $action->loadIdActionNameAndUrl(); @@ -263,20 +257,16 @@ class Piwik_Tracker_Visit implements Piwik_Tracker_Visit_Interface printDebug($this->cookie); } - /** - * - * @return bool Should the action be tracked at all - */ protected function handleAction($action) { $action->setIdSite($this->idsite); $action->setRequest($this->request); $action->setTimestamp($this->getCurrentTimestamp()); $action->init(); + if($this->detectActionIsOutlinkOnAliasHost($action)) { - printDebug("The outlink's URL host is one of the known host for this website. We don't record this click."); - return false; + printDebug("Info: The outlink URL host is one of the known host for this website. "); } if(isset($GLOBALS['PIWIK_TRACKER_DEBUG']) && $GLOBALS['PIWIK_TRACKER_DEBUG']) { @@ -295,7 +285,6 @@ class Piwik_Tracker_Visit implements Piwik_Tracker_Visit_Interface "\n Action name: ". $action->getActionName() . ",". "\n Action URL = ". $action->getActionUrl() ); } - return true; } /** |