pulibrary / dpul

Princeton's digital collections: Digital PUL
https://dpul.princeton.edu/
Apache License 2.0
15 stars 0 forks source link

Track count of record pages per visit #1534

Closed tpendragon closed 1 week ago

tpendragon commented 2 months ago

We want to know how many individual records a person tends to visit per session. Record pages are pages like "/catalog/123".

Acceptance Criteria

First Step

tpendragon commented 1 month ago

I can get how many visits there are to a record page, and can even create a goal for it, but I can't get Plausible to tell us how many times a person tends to visit that page in a session.

I created https://feedback.plausible.io/423 to request that feature.

tpendragon commented 1 month ago

If we add a property to the page view event for record pages, I think we can filter to just those and maybe get "Views per Visit"

sdellis commented 1 week ago

In Plausible we can apply a filter to show only record pages by clicking on the Filter button, clickPage, select Page Contains, and type "catalog/", and apply the filter.

This gives us information about the number of time unique record pages have been viewed. However, this is different from the Acceptance Criteria which asks for how many unique records a user visits per session. Plausible doesn't seem to give information about individual user behavior, but we could potentially have an opaque id for a user and send it along with their record views per session to Plausible for aggregation. That seems to be the next step.

sdellis commented 1 week ago

We can't track any Personally Identifiable Information about an end user, but we can send both the Session ID and the record page/id to plausible.