activies api

This commit is contained in:
Liam
2025-04-28 19:48:18 +08:00
parent 3162836e91
commit cf0f35e274
2 changed files with 23 additions and 12 deletions

View File

@@ -139,8 +139,8 @@ export async function GET(request: NextRequest) {
// Client ID (possibly part of visitor_id)
const clientId = eventWithFullPath.visitor_id?.split('-')[0] || 'undefined';
// Original path (use full URL field)
const originPath = fullUrl || 'undefined';
// Original path - 修正使用link_original_url作为原始URL来源
const originPath = eventWithFullPath.link_original_url || 'undefined';
// Add to CSV content
csvContent += `${time},${activity},${campaign},${clientId},${originPath}\n`;