Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
asbiin committed Mar 10, 2024
1 parent af40737 commit a14c405
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion app/Http/Middleware/TrackPageview.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,12 @@ public function track(

app()->terminating(function () use ($name, $meta) {

Log::info('Pirsch '.($name === null ? 'hit' : 'event'), ['name' => $name, 'meta' => $meta]);
Log::info('Pirsch '.($name === null ? 'hit' : 'event'), [
'name' => $name,
'meta' => $meta,
'url' => request()->fullUrl(),
'ip' => request()->ip(),
]);

try {
Http::withToken(config('pirsch.token'))
Expand Down

0 comments on commit a14c405

Please sign in to comment.