diff options
author | Thomas Steur <thomas.steur@gmail.com> | 2015-12-09 04:06:05 +0300 |
---|---|---|
committer | Thomas Steur <thomas.steur@gmail.com> | 2015-12-09 06:37:22 +0300 |
commit | 3b020078117c5e87fc4c9325fed34e33858c8017 (patch) | |
tree | 8e1ae18a1db1537b22536ea8881c35637c4a90bc /core/Tracker | |
parent | 6846145992278b52a2a35a8f040c39c3fb558b04 (diff) |
fix creating new visits when no referrer keyword is set
Diffstat (limited to 'core/Tracker')
-rw-r--r-- | core/Tracker/Visitor.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/core/Tracker/Visitor.php b/core/Tracker/Visitor.php index 2619c98987..40e027b26f 100644 --- a/core/Tracker/Visitor.php +++ b/core/Tracker/Visitor.php @@ -9,7 +9,6 @@ namespace Piwik\Tracker; use Piwik\Config; -use Piwik\Plugin\Dimension\VisitDimension; use Piwik\Tracker; use Piwik\Tracker\Visit\VisitProperties; @@ -49,6 +48,11 @@ class Visitor return $this->visitorKnown === true; } + public function isNewVisit() + { + return !$this->isVisitorKnown(); + } + private function setIsVisitorKnown($isVisitorKnown) { return $this->visitorKnown = $isVisitorKnown; |