cofacts / rumors-api

GraphQL API server for clients like rumors-site and rumors-line-bot
https://api.cofacts.tw
MIT License
109 stars 26 forks source link

Load article LIFF's trend data in hourly cron job and expose them in API #281

Closed MrOrz closed 1 year ago

MrOrz commented 2 years ago

GA report query

Output structure

{
  stats: {
    webUser: number; webVisit: number;
    // existing Cofacts chatbot webhook number
    lineUser: number; lineVisit: number;
    // Breakdown by source. Source can be '' if not specified.
    liff: {source: string; user: number; visit: number}[]
  }
}