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 #63

Open mediafinger opened 4 weeks ago

mediafinger commented 4 weeks ago

Ahoy ⛵

Visits

Store a heap of information every time a user "visits" the app. Configurated to stay GDPR conform.

Events

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

Record History

Yournaling already has a self-baked way to store changes of records. This is done over the RecordHistory model.

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 is 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