roam/aweber/20210915133101-analytics_view_service.org
2021-11-04 16:52:09 -04:00

6.8 KiB

Analytics View Service

Plan

ITEM Effort
Plan 19d 4:00
Create the analytics view service 2d
Create the analytics view service playbook 4h
Plan API structure
Create endpoints for existing reports 17d 0:00
Opens 1d
Clicks 1d
Sales 1d
Sales Totals 1d
Sale Currencies 1d
Sale Events 1d
Lifetime Sales 1d
Pending Broadcasts 1d
Completed Broadcasts 1d
Cities, States, and Countries 1d
Followups 1d
New Subscribers Daily 1d
New Subscribers Weekly 1d
New Subscribers Monthly 1d
Subscriber Totals Daily 1d
Subscriber Totals Weekly 1d
Subscriber Totals Monthly 1d
Migrate reports to the Analytics View Service

Create the analytics view service

  • New project using cookie cutter
  • Deployed to kubernetes
  • Grafana dashboard created

Create the analytics view service playbook

Plan API structure

  • Pathing (/reports/*)?
  • Report versioning? (/reports/{name}.v{version})?

Create endpoints for existing reports

Opens

  • List

    • Account-wide
    • By list
  • Time

    • Last 30 days
    • 30 day range
  {
    "2021-11-02T00:00:00Z": {
      "broadcasts": 2499,
      "followups": 2547,
      "unique": 2923,
      "total": 5046
    },
    "2021-11-03T00:00:00Z": {
      "broadcasts": 25808,
      "followups": 2430,
      "unique": 24876,
      "total": 28238
    },
    "2021-11-04T00:00:00Z": {
      "broadcasts": 16733,
      "followups": 1437,
      "unique": 14780,
      "total": 18170
    }
  }
opens_all

Clicks

  • List

    • Account-wide
    • By list
  • Time

    • Last 30 days
    • 30 day range
  {
    "2021-11-02T00:00:00Z": {
      "broadcasts": 105,
      "followups": 137,
      "unique": 130,
      "total": 242
    },
    "2021-11-03T00:00:00Z": {
      "broadcasts": 636,
      "followups": 185,
      "unique": 622,
      "total": 821
    },
    "2021-11-04T00:00:00Z": {
      "broadcasts": 480,
      "followups": 109,
      "unique": 426,
      "total": 589
    }
  }
clicks_all

Sales

  • Time

    • Last 30 days
    • 30 day range
  • Currency
  [
    {
      "time": "2021-11-02 09:37:36-04",
      "type": "followup",
      "currency": "USD",
      "revenue": "19.00",
      "note": "",
      "description": "Upgraded to Pro",
      "source_url": "https://www.aweber.com/users/#upgraded",
      "email": "team@harmoniamedia.com"
    },
    {
      "time": "2021-11-02 09:37:37-04",
      "type": "followup",
      "currency": "USD",
      "revenue": "19.00",
      "note": "",
      "description": "Upgraded to Pro",
      "source_url": "https://www.aweber.com/users/#upgraded",
      "email": "team@harmoniamedia.com"
    },
    {
      "time": "2021-11-02 12:01:17-04",
      "type": "followup",
      "currency": "USD",
      "revenue": "19.00",
      "note": "",
      "description": "Upgraded to Pro",
      "source_url": "https://www.aweber.com/users/#upgraded",
      "email": "giuliagiardino12@gmail.com"
    },
    {
      "time": "2021-11-02 12:01:19-04",
      "type": "followup",
      "currency": "USD",
      "revenue": "19.00",
      "note": "",
      "description": "Upgraded to Pro",
      "source_url": "https://www.aweber.com/users/#upgraded",
      "email": "giuliagiardino12@gmail.com"
    },
    {
      "time": "2021-11-04 05:21:35-04",
      "type": "broadcast",
      "currency": "USD",
      "revenue": "19.00",
      "note": "",
      "description": "Upgraded to Pro",
      "source_url": "https://www.aweber.com/users/#upgraded",
      "email": "jeremy@jeremy-quick.com"
    },
    {
      "time": "2021-11-04 05:21:36-04",
      "type": "broadcast",
      "currency": "USD",
      "revenue": "19.00",
      "note": "",
      "description": "Upgraded to Pro",
      "source_url": "https://www.aweber.com/users/#upgraded",
      "email": "jeremy@jeremy-quick.com"
    }
  ]
sales_tracked_events

Sales Totals

  • Time

    • Last 60 days
    • 60 day range
  {
    "2021-11-02T00:00:00Z": {
      "broadcast": 0,
      "followup": 76,
      "pageview": 76,
      "ecommerce": 0,
      "total": 76
    },
    "2021-11-03T00:00:00Z": {
      "broadcast": 0,
      "followup": 0,
      "pageview": 0,
      "ecommerce": 0,
      "total": 0
    },
    "2021-11-04T00:00:00Z": {
      "broadcast": 38,
      "followup": 0,
      "pageview": 38,
      "ecommerce": 0,
      "total": 38
    }
  }
sales_tracked_summary

Sale Currencies

  • Time

    • 60 day range
    • All time
["USD"]
sales_tracked_currencies

Sale Events

  • Time

    • Last 30 days
    • 30 day range
  • Currency
  • Type

Lifetime Sales

  • Currency

Pending Broadcasts

Completed Broadcasts

  • List

    • Account-wide
    • By list
  • Time

    • All time
    • 30 day range

Cities, States, and Countries

Followups

New Subscribers Daily

New Subscribers Weekly

New Subscribers Monthly

Subscriber Totals Daily

Subscriber Totals Weekly

Subscriber Totals Monthly

Migrate reports to the Analytics View Service