Problem/Motivation

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!

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

Comments

anybody created an issue. See original summary.

anybody’s picture

Title: Referrer tracking and report » Referrer and user agent tracking and report
Issue summary: View changes
firflant’s picture

Hi, 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.

anybody’s picture

Hi @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?

firflant’s picture

Expandable 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:

  • path
  • stat_date
  • view_count

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.

anybody’s picture

Thanks @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?

anybody’s picture

Priority: Normal » Minor