StatJolt Analytics is a Drupal module for cookieless, GDPR compliant web analytics. It sends page views to statjolt.com, a hosted analytics service. It writes nothing to the Drupal database except its own settings object.
What it does:
- Injects the StatJolt tracking script before the closing body tag on every front end page, once, regardless of how the badge is placed
- Ships a block and a text filter to place the required badge
- Skips logged in users (optional), admin routes, and non-HTML responses (JSON, ajax, feeds, file downloads)
- Reports live setup status on the settings screen
- Ships 9 translated languages, both server-fetched and bundled
How it differs from self hosted analytics modules: it writes no rows to the Drupal database per page view, so it does not grow Drupal tables or slow down the site's own database.
Comments
Comment #2
avpadernoThank you for applying!
Before giving links helpful to understand how the review process works, what to expect from a review, and what to do to avoid a review takes more time than needed, I would like to thank all the reviewers for the work they do.
These applications are volunters-driven, which also means it is not possible to predict when an application will be marked fixed and the applicant will get the permission to opt projects into security advisory policy. While we aim to make an application as quick as possible, it is also important for us that more people review the project used for an application. In this way, we make sure applications do not miss some important points that should be instead reported.
Applications are not meant to be complete debugging sessions that eliminate every existing bug, though. I apologize if sometimes applications seem to go into too-detailed reviews.
Please read Review process for security advisory coverage: What to expect for more details and Security advisory coverage application checklist to understand what reviewers look for. Tips for ensuring a smooth review gives some hints for a smoother review.
The important notes are the following.
Keep in mind that once the project is opted into security advisory coverage, only Security Team members may change coverage.
To the reviewers
Please read How to review security advisory coverage applications, Application workflow, What to cover in an application review, and Tools to use for reviews.
The important notes are the following.
For new reviewers, I would also suggest to first read In which way the issue queue for coverage applications is different from other project queues.
Comment #3
vishal.kadam1. Add a README.md file
The project is missing a README.md file, it should follow the template suggested in README.md template.
2. FILE: src/Badge.php
FILE: src/EventSubscriber/ResponseSubscriber.php
Modules which are compatible with Drupal 10 and higher versions are expected to use constructor property promotion.
3. FILE: src/Form/SettingsForm.php
With Drupal 10 and Drupal 11, there is no longer need to use #default_value for each form element, when the parent class is ConfigFormBase: It is sufficient to use #config_target, as in the following code.
Using that code, it is no longer needed to save the configuration values in the form submission handler: The parent class will take care of that.
For this change, it is necessary to require at least Drupal 10.3, but that is not an issue, since Drupal 10.2.x is no longer supported.
4. FILE: src/Plugin/Block/BadgeBlock.php
FILE: src/Plugin/Filter/FilterBadge.php
Projects that are compatible with Drupal 10 or higher versions should use attributes instead of annotations. This means requiring at least Drupal 10.3, but this is not an issue, considering which Drupal core versions are nowadays supported.