mirror of
https://github.com/christianvidalwolf-prog/CrazeAnalytix.git
synced 2026-08-03 12:35:24 +02:00
debug: console logs for ad spend diff
This commit is contained in:
@@ -493,12 +493,12 @@ const Dashboard: React.FC<DashboardProps> = ({
|
||||
}
|
||||
const t = yearMap.get(y)!;
|
||||
|
||||
if (t.cost === 0 && ad.cost > 0) {
|
||||
console.log("DASHBOARD AD RECORD:", ad);
|
||||
if (ad.year === 2026) {
|
||||
console.log("DASH 2026 W" + ad.week, ad.cost);
|
||||
}
|
||||
|
||||
t.cost += ad.cost || 0;
|
||||
t.attributedSales += ad.attributedSales30d || ad.salesAds || 0;
|
||||
t.attributedSales += ad.attributedSales30d;
|
||||
t.clicks += ad.clicks || 0;
|
||||
t.impressions += ad.impressions || 0;
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user