This project is not covered by Drupal’s security advisory policy.

Node Access Count tracks how often content is accessed across admin pages and headless APIs, helping site builders understand content usage in both traditional and decoupled Drupal sites.

Unique features

  • Supports decoupled / headless Drupal use cases
  • Allows configuration at the content type level
  • Enables selective tracking for:
    • Admin views only
    • Headless access only
    • Both admin and headless access
    • Tracks unique user access counts based on user ID
    • Provides access data through Drupal Views, allowing custom reports and statistics to be created
    • Can be used for content access statistics and usage analysis

When and why to use this module

  • When you want to understand how often content is accessed
  • When your site uses both traditional Drupal pages and headless frontends
  • When you want to track the number of unique users accessing content
  • When you need custom reports or statistics using Drupal Views
  • When you need content access data for statistics, reporting, or usage analysis

Views and Reporting
The access data collected by the module can be used with Drupal Views to create custom reports and statistics. You can build Views based on the available access data to analyze content usage, access counts, and unique user access counts according to your requirements.

Post-Installation

After enabling the module, configuration can be completed through the admin interface:

  1. Navigate to Administration > Configuration > Content Authoring > Node Access Count
  2. Select the content types for which access tracking should be enabled
  3. Choose the tracking mode:
    • Admin-side node view
    • Headless (API-based) access
  4. If Headless tracking is enabled, an additional Headless Configuration tab will appear
  5. Configure the API route details used to access nodes
  6. Save the configuration

Once configured, node access counts are automatically recorded based on the selected options. No additional content types or fields are required.

Project information

Releases