mirror of
https://github.com/christianvidalwolf-prog/CrazeAnalytix.git
synced 2026-08-03 12:15:23 +02:00
feat: add units/revenue toggle to Weekly Sales and improve traffic data parsing
This commit is contained in:
@@ -525,8 +525,8 @@ export const processTrafficExcel = async (fileOrBuffer: File | ArrayBuffer): Pro
|
||||
let yearIdx = headers.findIndex((h: string) => h === 'year' || h === 'año');
|
||||
let weekIdx = headers.findIndex((h: string) => h === 'week' || h === 'semana');
|
||||
let asinIdx = headers.findIndex((h: string) => h === 'asin');
|
||||
let countryIdx = headers.findIndex((h: string) => h === 'country' || h === 'país' || h === 'pais' || h === 'marketplace');
|
||||
let gvIdx = headers.findIndex((h: string) => h.includes('glance') || h === 'gv' || h.includes('page view'));
|
||||
let countryIdx = headers.findIndex((h: string) => h === 'country' || h === 'país' || h === 'pais' || h === 'marketplace' || h === 'store code');
|
||||
let gvIdx = headers.findIndex((h: string) => h.includes('glance') || h === 'gv' || h.includes('page view') || h === 'featured offer page views');
|
||||
|
||||
// Fallback to positional mapping if headers not found
|
||||
if (asinIdx === -1 || countryIdx === -1 || gvIdx === -1) {
|
||||
|
||||
Reference in New Issue
Block a user