Comments

amitgoyal’s picture

Status: Active » Closed (won't fix)

@manicato - By default, last 7 days visitor data is saved. So it's not a bug and user can configure it from the admin section.

Please goto Configuration->User visits (admin/config/people/user_visits) and configure it as per your needs.

dillonbecker’s picture

Issue summary: View changes

This is also happening for me. I have the module configured to save 365 days of data and yet every time cron runs it clears all of the visitor data.

dillonbecker’s picture

Version: 7.x-1.x-dev » 7.x-1.0
Status: Closed (won't fix) » Active
NiklasBr’s picture

Looking at user_visits_adv.module row 242-245, I believe this is the source of the deleted data some people are seeing.

<?php
      // Store all data.
      db_update('user_visits_adv')
        ->fields(array(
        'total' => total + $visit->count,
        'visitors' => serialize($visit->recent_visitors),
        'history' => serialize($history),
        ))
        ->condition('uid', $visit->uid)
        ->execute();
?>

Specifically this row where "total" is not a variable nor a constant:

<?php
        'total' => total + $visit->count,
?>