feat: update analytics

This commit is contained in:
ivannoskov
2026-02-03 18:55:09 +03:00
parent d87d6e2568
commit e27a171c63
8 changed files with 1529 additions and 461 deletions

View File

@@ -766,87 +766,177 @@ export const demoChannelAnalytics: ChannelAnalyticsItem[] = [
},
];
// Placements Analytics (Projects Analytics)
// Placements Analytics (detailed view)
export const demoPlacementAnalytics: PlacementAnalyticsItem[] = [
{
id: "plac-0001-0000-0000-000000000001",
project_id: "proj-0001-0000-0000-000000000001",
project_channel_title: "Крипто Новости",
placement_channel_id: "chan-0001-0000-0000-000000000001",
placement_channel_title: "Технологии Будущего",
project_title: "Крипто Новости",
channel_id: "chan-0001-0000-0000-000000000001",
channel_title: "Технологии Будущего",
creative_id: "crea-0001-0000-0000-000000000001",
creative_name: "Крипто - Основной",
placement_date: "2024-12-20T12:00:00Z",
cost: 5500,
cost_type: "fixed",
cost_before_bargain: 6000,
payment_at: "2024-12-19T10:00:00Z",
placement_type: "standard",
comment: null,
format: null,
invite_link_type: "public",
placement_date: "2024-12-20T12:00:00Z",
subscriptions_count: 156,
views_count: 8500,
cpf: 35.26,
cpm: 647.06,
time_on_top: 60,
time_in_feed: null,
invite_link: "https://t.me/+test1",
invite_link_created_at: "2024-12-20T11:55:00Z",
post_url: "https://t.me/tech_future/1001",
post_deleted_at: null,
conversion_24h: 1.5,
conversion_48h: 2.1,
conversion_total: 1.84,
unsubscriptions_count: 5,
unsub_percent: 3.11,
total_active: 151,
},
{
id: "plac-0002-0000-0000-000000000002",
project_id: "proj-0001-0000-0000-000000000001",
project_channel_title: "Крипто Новости",
placement_channel_id: "chan-0002-0000-0000-000000000002",
placement_channel_title: "Инвестиции Pro",
project_title: "Крипто Новости",
channel_id: "chan-0002-0000-0000-000000000002",
channel_title: "Инвестиции Pro",
creative_id: "crea-0001-0000-0000-000000000001",
creative_name: "Крипто - Основной",
placement_date: "2024-12-18T14:00:00Z",
cost: 3200,
cost_type: "fixed",
cost_before_bargain: 3500,
payment_at: "2024-12-17T14:00:00Z",
placement_type: "standard",
comment: null,
format: null,
invite_link_type: "public",
placement_date: "2024-12-18T14:00:00Z",
subscriptions_count: 89,
views_count: 4200,
cpf: 35.96,
cpm: 761.9,
time_on_top: 45,
time_in_feed: null,
invite_link: "https://t.me/+test2",
invite_link_created_at: "2024-12-18T13:50:00Z",
post_url: "https://t.me/invest_pro/502",
post_deleted_at: null,
conversion_24h: 1.8,
conversion_48h: 2.2,
conversion_total: 2.12,
unsubscriptions_count: 3,
unsub_percent: 3.26,
total_active: 86,
},
{
id: "plac-0003-0000-0000-000000000003",
project_id: "proj-0001-0000-0000-000000000001",
project_channel_title: "Крипто Новости",
placement_channel_id: "chan-0003-0000-0000-000000000003",
placement_channel_title: "Программисты",
project_title: "Крипто Новости",
channel_id: "chan-0003-0000-0000-000000000003",
channel_title: "Программисты",
creative_id: "crea-0001-0000-0000-000000000001",
creative_name: "Крипто - Основной",
placement_date: "2024-12-15T10:00:00Z",
cost: 4800,
cost_type: "cpm",
cost_before_bargain: null,
payment_at: "2024-12-14T10:00:00Z",
placement_type: "standard",
comment: "Хороший канал",
format: null,
invite_link_type: "approval",
placement_date: "2024-12-15T10:00:00Z",
subscriptions_count: 234,
views_count: 12000,
cpf: 20.51,
cpm: 400.0,
time_on_top: 120,
time_in_feed: null,
invite_link: "https://t.me/+test3",
invite_link_created_at: "2024-12-15T09:55:00Z",
post_url: "https://t.me/programmers_hub/2050",
post_deleted_at: null,
conversion_24h: 1.2,
conversion_48h: 1.8,
conversion_total: 1.95,
unsubscriptions_count: 8,
unsub_percent: 3.31,
total_active: 226,
},
{
id: "plac-0004-0000-0000-000000000004",
project_id: "proj-0002-0000-0000-000000000002",
project_channel_title: "IT Вакансии",
placement_channel_id: "chan-0004-0000-0000-000000000004",
placement_channel_title: "Маркетинг Pro",
project_title: "IT Вакансии",
channel_id: "chan-0004-0000-0000-000000000004",
channel_title: "Маркетинг Pro",
creative_id: "crea-0002-0000-0000-000000000002",
creative_name: "Крипто - Агрессивный",
placement_date: "2024-12-10T16:00:00Z",
cost: 2500,
cost_type: "fixed",
cost_before_bargain: 3000,
payment_at: "2024-12-09T16:00:00Z",
placement_type: "self_promo",
comment: null,
format: null,
invite_link_type: "public",
placement_date: "2024-12-10T16:00:00Z",
subscriptions_count: 67,
views_count: 3100,
cpf: 37.31,
cpm: 806.45,
time_on_top: 30,
time_in_feed: null,
invite_link: "https://t.me/+test4",
invite_link_created_at: "2024-12-10T15:55:00Z",
post_url: "https://t.me/marketing_pro/803",
post_deleted_at: "2024-12-12T16:00:00Z",
conversion_24h: 1.5,
conversion_48h: 2.0,
conversion_total: 2.16,
unsubscriptions_count: 2,
unsub_percent: 2.9,
total_active: 65,
},
{
id: "plac-0005-0000-0000-000000000005",
project_id: "proj-0002-0000-0000-000000000002",
project_channel_title: "IT Вакансии",
placement_channel_id: "chan-0005-0000-0000-000000000005",
placement_channel_title: "Финансовая грамотность",
project_title: "IT Вакансии",
channel_id: "chan-0005-0000-0000-000000000005",
channel_title: "Финансовая грамотность",
creative_id: "crea-0002-0000-0000-000000000002",
creative_name: "Крипто - Агрессивный",
placement_date: "2024-12-05T11:00:00Z",
cost: 6200,
cost_type: "fixed",
cost_before_bargain: 7500,
payment_at: "2024-12-04T11:00:00Z",
placement_type: "standard",
comment: null,
format: null,
invite_link_type: "approval",
placement_date: "2024-12-05T11:00:00Z",
subscriptions_count: 312,
views_count: 15600,
cpf: 19.87,
cpm: 397.44,
time_on_top: 90,
time_in_feed: null,
invite_link: "https://t.me/+test5",
invite_link_created_at: "2024-12-05T10:55:00Z",
post_url: "https://t.me/finance_edu/1204",
post_deleted_at: null,
conversion_24h: 1.3,
conversion_48h: 1.9,
conversion_total: 2.0,
unsubscriptions_count: 12,
unsub_percent: 3.7,
total_active: 300,
},
];