Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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.