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';