Site visit tracking

Discussion in 'General' started by variable99, Dec 17, 2023.

  1. variable99

    variable99 Member

    I have free hosting project where I would like to track each website monthly or any X days unique visits and if visits are less then X per period I would inform user about website closure.
    Now, I use goaccess for each user. My few thoughts:
    1. Save each website goaccess log data in separate folder from clients data. Kinda duplicate of log files, just with longer retention period than users.
    2. Somehow utilize users goaccess db without duplicating log files.
    3. Send remotely log files in separate server dedicated for log processing.

    How would YOU done this task? What's your ideas?
     
  2. ahrasis

    ahrasis Well-Known Member HowtoForge Supporter

    Create a script that grab each site visit's log, then auto email to admin and users whether it is within or below expectation, with automated contents as well as the closure of such site with the same script if you like.
     
  3. variable99

    variable99 Member

    My final idea was to attach to the log rotation process and invoke hook "prerotate" to count visits for each. But in my surprise ISPC handles log rotation in non-standard way... And this is whole new can of worms :-/
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    Not at all, it makes it even easier. see my answer to your other post.
     
    ahrasis likes this.

Share This Page