Statistics: Next Generation

Categories

Component ID

2565641

Component name

Statistics: Next Generation

Component type

module

Maintenance status

Development status

Component security advisory coverage

not-covered

Component created

Component changed

Component body

A Statistics modules aimed to mimic the one from Core with better features.

Installation

The module uses the same approchs as the one from Core to collect stats. that means it uses a standalone .php file called with an AJAX request.
The default ".htaccess" file from Core prevent this file to be hit.
So you need to adjust the default .htaccess file

Look for this block

  # Allow access to Statistics module's custom front controller.
  # Copy and adapt this rule to directly execute PHP files in contributed or
  # custom modules or to run another PHP application in the same directory.
  RewriteCond %{REQUEST_URI} !/core/modules/statistics/statistics.php$

And add below :

  # Custom Rule : Allow access to our custom statistics file.
  RewriteCond %{REQUEST_URI} !/modules/statistics_ng/statistics_ng.php$

Yo may need to adjust the path to the statistics_ng.php file.