mediafinger / yournaling

An app to journal, to link memories, photos, locations and combine them to a travel log
Other
1 stars 0 forks source link

Ahoy ⛵ - track Visits and Events internally #62

Closed mediafinger closed 4 weeks ago

mediafinger commented 4 weeks ago

Ahoy ⛵

Visits

Stores a heap of information every time a user "visits" the app.

Events

Allows to store events (usually == user actions) and connect them to a visit.

Record History

Yournaling already had a self-baked way to store changes of records. This was done over the RecordHistory model. This change renames the model to RecordEvent and makes in compatible to the Ahoy::Event interface.

Now there are two ways to record an event:

Food for thought

Use ahoy.track for all kind of events - also those that do not change a record (e.g. page visits, pagination, searching, filtering of lists...).

Keep RecordHistory as it was and keep calling it in a transaction to always have a full history of changes to a record (though we do not store all changed attributes (yet?).) Being able to display this to the team admins has a value!
Enqueue ahoy.track (with record_history:) in the transaction in which we write the RecordHistory.

TODO

mediafinger commented 4 weeks ago

Closed in favor of: