Log visits with ajax

Created on 1 September 2022, over 2 years ago
Updated 25 June 2023, over 1 year ago

Hello,
after the installation of the module we noticed a problem related to the counting of the visit.
When you are not logged in to the site (anonymous user) and visit a page displayed on the frontend, the visit is not counted - registered on database.
Instead, when the visit is made by a logged user, such as administrator, the visit is counted correctly.
We have also seen that by deactivating the page cache (in settings.php file, by adding the following entry: $settings['cache']['bins']['page'] = 'cache.backend.null') the visit made by anonymous user is counted correctly.
Is it possible to keep the visit counting for anonymous users without deactivating the page cache?

Here are the configurations related to the server in use:
- Drupal version: 9.4.3
- Cache / CDN: none

Feature request
Status

Fixed

Version

2.0

Component

Code

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024