From 51e168ee3bc492dc38bb5186cd4dbfbf73c30679 Mon Sep 17 00:00:00 2001 From: Liam Date: Mon, 28 Apr 2025 20:18:46 +0800 Subject: [PATCH] eventid --- app/api/activities/route.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/api/activities/route.ts b/app/api/activities/route.ts index fa1c06d..abc07b1 100644 --- a/app/api/activities/route.ts +++ b/app/api/activities/route.ts @@ -136,8 +136,8 @@ export async function GET(request: NextRequest) { // Determine activity (event_type) const activity = eventWithFullPath.event_type || ''; - // Client ID (possibly part of visitor_id) - const clientId = eventWithFullPath.visitor_id?.split('-')[0] || 'undefined'; + // 修改:使用link_label替代visitor_id作为clientId + const clientId = eventWithFullPath.link_label || 'undefined'; // Original path - 修正:使用link_original_url作为原始URL来源 const originPath = eventWithFullPath.link_original_url || 'undefined';