diff options
author | diosmosis <benaka@piwik.pro> | 2015-06-23 14:13:47 +0300 |
---|---|---|
committer | diosmosis <benaka@piwik.pro> | 2015-06-25 14:13:35 +0300 |
commit | 3a40e6cc35e5016122087127d4522cded116b1f8 (patch) | |
tree | b1e82c8642d8556e55aacaeb08d38f2f48d6aa18 /core/Tracker/Visit.php | |
parent | b2667ba7998db959ac8eb468c5e8303c9522d1cf (diff) |
Clean up some additions in this branch, rename setHeartBeatTimer to enableHeartBeatTimer, rename clearHeartBeat to disableHeartBeatTimer, make sure the timer will be set up after any tracker request, not just page view.
Diffstat (limited to 'core/Tracker/Visit.php')
-rw-r--r-- | core/Tracker/Visit.php | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/core/Tracker/Visit.php b/core/Tracker/Visit.php index 6a33b93f52..3811e81c9b 100644 --- a/core/Tracker/Visit.php +++ b/core/Tracker/Visit.php @@ -158,14 +158,6 @@ class Visit implements VisitInterface $isNewVisit = $this->isVisitNew($visitor, $action); - // on a ping request that is received before the standard visit length, we just update the visit time w/o - // adding a new action - if ($this->isPingRequest() - && !$isNewVisit - ) { - $action = null; - } - // Known visit when: // ( - the visitor has the Piwik cookie with the idcookie ID used by Piwik to match the visitor // OR @@ -174,6 +166,12 @@ class Visit implements VisitInterface // AND // - the last page view for this visitor was less than 30 minutes ago @see isLastActionInTheSameVisit() if (!$isNewVisit) { + // on a ping request that is received before the standard visit length, we just update the visit time w/o + // adding a new action + if ($this->isPingRequest()) { + $action = null; + } + $idReferrerActionUrl = $this->visitorInfo['visit_exit_idaction_url']; $idReferrerActionName = $this->visitorInfo['visit_exit_idaction_name']; |