Change record status: 
Project: 
Introduced in branch: 
8.3.x
Introduced in version: 
8.3.0
Description: 

All database interactions in the Statistics module have been moved to NodeStatisticsDatabaseStorage. All interactions with the node_counter table to get and set node view counts should now be done via that service.

This service is tagged backend_overridable and can be overridden by any contrib or custom module, allowing node views to be stored and retrieved on a different data store.

With this update statistics_get() has been deprecated, use \Drupal::service('statistics.storage.node')->fetchView($id) instead.

Impacts: 
Module developers