Ghost/core/server/services/email-analytics/lib
Kevin Ansfield 567eb6325f
Added members.email_open_rate aggregation to email analytics (#12458)
refs https://github.com/TryGhost/Ghost/issues/12421
requires https://github.com/TryGhost/Ghost/pull/12457

- updates stats aggregator to calculate and store an open rate for each member
  - uses two queries because I couldn't find a reasonable approach to perform the update in a single query as per the email aggregation
  - benchmarked locally at <1sec/1000members
  - will not store an open rate unless the number of tracked emails sent to a member is above a certain threshold (defaults to 5) to avoid new members being heavily weighted
- fixes typo in EmailAnalytics that was stopping member stats from being aggregated
2020-12-08 12:43:10 +00:00
..
event-processing-result.js Added email analytics service (#12393) 2020-11-26 13:09:38 +00:00
event-processor.js Added email analytics service (#12393) 2020-11-26 13:09:38 +00:00
stats-aggregator.js Added members.email_open_rate aggregation to email analytics (#12458) 2020-12-08 12:43:10 +00:00