Add device, platform, and country analytics to link show page.
Deploy Ladill Link / deploy (push) Successful in 32s

Record parsed user-agent and geo data on clicks, then surface breakdowns and richer recent-click context on per-link and account analytics views.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
isaacclad
2026-06-27 19:32:40 +00:00
co-authored by Cursor
parent 9d89aef17e
commit 0e5e0f6ca5
12 changed files with 453 additions and 32 deletions
@@ -0,0 +1,24 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
public function up(): void
{
Schema::table('link_clicks', function (Blueprint $table) {
$table->string('device_type', 16)->nullable()->after('referer');
$table->string('browser', 32)->nullable()->after('device_type');
$table->string('os', 32)->nullable()->after('browser');
});
}
public function down(): void
{
Schema::table('link_clicks', function (Blueprint $table) {
$table->dropColumn(['device_type', 'browser', 'os']);
});
}
};