diff --git a/src/Ipunkt/LaravelAnalytics/TrackingBag.php b/src/Ipunkt/LaravelAnalytics/TrackingBag.php index 1ce30cf..2806ea6 100644 --- a/src/Ipunkt/LaravelAnalytics/TrackingBag.php +++ b/src/Ipunkt/LaravelAnalytics/TrackingBag.php @@ -39,7 +39,12 @@ public function add($tracking) public function get() { if (Session::has($this->sessionIdentifier)) { - return Session::get($this->sessionIdentifier); + $trackings = Session::get($this->sessionIdentifier); + + // forget the session store data + Session::forget($this->sessionIdentifier); + + return $trackings; } return [];