Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/Heartbeat')
-rw-r--r--plugins/Heartbeat/Tracker/PingRequestProcessor.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/Heartbeat/Tracker/PingRequestProcessor.php b/plugins/Heartbeat/Tracker/PingRequestProcessor.php
index 99c22bfc77..7f110b1d55 100644
--- a/plugins/Heartbeat/Tracker/PingRequestProcessor.php
+++ b/plugins/Heartbeat/Tracker/PingRequestProcessor.php
@@ -24,13 +24,13 @@ class PingRequestProcessor extends RequestProcessor
if ($this->isPingRequest($request)) {
// on a ping request that is received before the standard visit length, we just update the visit time w/o adding a new action
Common::printDebug("-> ping=1 request: we do not track a new action nor a new visit nor any goal.");
- $visitProperties->setRequestMetadata('Actions', 'action', null);
- $visitProperties->setRequestMetadata('Goals', 'goalsConverted', array());
- $visitProperties->setRequestMetadata('Goals', 'visitIsConverted', false);
+ $request->setMetadata('Actions', 'action', null);
+ $request->setMetadata('Goals', 'goalsConverted', array());
+ $request->setMetadata('Goals', 'visitIsConverted', false);
// When a ping request is received more than 30 min after the last request/ping,
// we choose not to create a new visit.
- if ($visitProperties->getRequestMetadata('CoreHome', 'isNewVisit')) {
+ if ($request->getMetadata('CoreHome', 'isNewVisit')) {
Common::printDebug("-> ping=1 request: we do _not_ create a new visit.");
return true; // abort request
}