Skip to content

Commit

Permalink
Use correct time for queued tracks
Browse files Browse the repository at this point in the history
  • Loading branch information
tbruckmaier committed Mar 29, 2021
1 parent ccf870e commit ffb5528
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/LaravelMatomoTracker.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@ private function setMatomoVariables(Request $request, int $idSite = null, string
$this->ecommerceItems = array();
$this->attributionInfo = false;
$this->eventCustomVar = false;
$this->forcedDatetime = false;
// force-set time, so queued commands use the right request time
$this->forcedDatetime = time();
$this->forcedNewVisit = false;
$this->networkTime = false;
$this->serverTime = false;
Expand Down

0 comments on commit ffb5528

Please sign in to comment.