接入百度统计部分数据,按天存储

This commit is contained in:
2024-01-15 11:23:59 +08:00
parent bf3f25972e
commit e2374676c3
11 changed files with 522 additions and 3 deletions

View File

@@ -0,0 +1,18 @@
class CreateDailyPlatformStatistics < ActiveRecord::Migration[5.2]
def change
create_table :daily_platform_statistics do |t|
t.date :date
t.index :date, unique: true
t.bigint :pv, default: 0
t.bigint :visitor, default: 0
t.bigint :ip, default: 0
t.float :weekly_keep_rate, default: 0
t.float :source_through, default: 0
t.float :source_link, default: 0
t.float :source_search, default: 0
t.float :source_custom, default: 0
t.timestamps
end
end
end