Postponed; the goal is to break out the API components of Better Statistics into a legitimate "Statistics API" module and simply implement the API. Some basic notes below. In the meantime, please help with SAPI issues here.

Stat Method plugins to implement:

  • Accesslog: As-is, most of what accesslog does fits the use-case of a base method plugin, so this should require very little code, triggered on kernel terminate event.
  • Entity Counter: In addition to counting node views, we're aiming to count views on any primary entity view callback; since core Drupal 8 only does this via JS, we should also only do this via JS

Stat Data plugins to implement:

  • Accesslog: all data fields removed from core Statistics should be implemented; up in the air as to whether or not we should implement the custom data fields we introduced in BS.
  • Entity Counter: probably just two: entity type, entity ID.