Add device, platform, and country analytics to link show page.
Deploy Ladill Link / deploy (push) Successful in 32s
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:
@@ -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']);
|
||||
});
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user