small fixes to tracking script and to ui

This commit is contained in:
Doar Mihai
2026-03-28 13:21:29 +02:00
parent 8a5aef0b13
commit d5f7793337
3 changed files with 12 additions and 12 deletions
@@ -21,9 +21,10 @@ class TrackingScriptController extends Controller
// Use ad-blocker resistant endpoint if script is loaded from /cdn/resources/
// Otherwise use the original endpoint for backward compatibility
$currentRoute = request()->route()->getName();
$collectUrl = $currentRoute === 'tracking.script.alt'
? route('collect.store.alt')
: route('collect.store');
// $collectUrl = $currentRoute === 'tracking.script.alt'
// ? 'route('collect.store.alt')'
// : route('collect.store');
$collectUrl = 'https://assets.libremetrics.com/assets/client/data';
$js = view('tracking.tracker', [
'trackingId' => $trackingId,