Active
Project:
Page Analytics
Version:
1.x-dev
Component:
Code
Priority:
Minor
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
5 Feb 2026 at 16:06 UTC
Updated:
17 Feb 2026 at 19:11 UTC
Jump to comment: Most recent
Hi,
your module looks very interesting and cool for smaller (non-profit) Drupal projects!
I think tracking the referrer and user agent and adding a report for that would be super helpful to track where people came from (per page and globally). What do you think about that?
Thanks!
Comments
Comment #2
anybodyComment #3
firflantHi, that's good to hear!
I think it is possible because we have this information in header of a request. Any UI suggestions how you would like, as a user, to see it in on a report screen? I would like to avoid creating another column in a html table for a value that will be in most cases empty.
Comment #4
anybodyHi @firflant that sounds great!
As a user for referrers and users on certain paths I'd just like to click a path and see details for the path then, like a path-based dashboard. I think this is where it could go to.
Additionally you could add a global dashboard where things are globally summed up and represented visually?
Comment #5
firflantExpandable UI element in the path column would seem like the way to go. Referer is a vital information that especially in aggregated way may provide a lot of useful insights. User Agent is less important.
The problem now is that for this module we have just one table page_analytics_daily with following fields:
Where path is a unique key.
Each path for each day has a single record, but there might be many referers for given path for given day. That enforces creation of another table, with a reference to page_analytics_daily path field, specially for storing referrers. And, optionally, a third table, dedicated in a similar manner for user agents.
That multiplies 3 times the amount of database writes per Cron session.
Comment #6
anybodyThanks @firflant yes that's correct. Still it doesn't have to be a problem in general. Alternatively it could be added as submodule.
If you're unsure, maybe postpone it?
Comment #7
anybody