# Best Practices: Storing User Action List

**URL:** <https://forum.bubble.io/t/best-practices-storing-user-action-list/20076>\
**Category:** Tips\
**Created:** [November 6, 2017, 4:32am UTC](https://forum.bubble.io/t/best-practices-storing-user-action-list/20076 "2017-11-06T04:32:59Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![sridharan.s](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/sridharan.s/32/17881_2.png) [@sridharan.s](https://forum.bubble.io/u/sridharan.s)\
**Post date:** [November 6, 2017, 4:32am UTC](https://forum.bubble.io/t/best-practices-storing-user-action-list/20076/1 "2017-11-06T04:32:59Z")

</div>

@blueback09, I saw your post on this topic.

> [@Display Current Members Online](http://forum.bubble.io/t/display-current-members-online/20046/3):
>
> I’ve got a table called “user action audit” where I log actions the user takes as they interact with the app. It’s useful for activity metrics and troubleshooting problems. If you had the same thing you could do something like a search for all actions in the last 5 minutes, user, unique values. That should give a list of all the users who are interacting with the app “right now”.

We’re considering doing something similar. Was wondering if you could how you structured your database for this, and why? Also, any insights or best practices that may help us implement it more wisely?

Last, did you look at using tools like Mixpanel and [Keen.io](http://Keen.io) for this? If so, any particular pros/cons vs. doing it within Bubble?

Thanks!  
Scott

---

<div class="post-metadata">

**Author:** ![blueback09](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/blueback09/32/7122_2.png) [@blueback09](https://forum.bubble.io/u/blueback09)\
**Post date:** [November 6, 2017, 5:48pm UTC](https://forum.bubble.io/t/best-practices-storing-user-action-list/20076/2 "2017-11-06T17:48:08Z")

</div>

I’ve got a table called “usr-act-audit” with fields “action”, “user”, and a bunch of others that reference other tables. Then I’ve got a lot of actions in workflows that record a new usr-act-audit when something interesting happens. Usually it will also get a reference to the other thing that’s being changed. Like if someone makes a new ticket in support the usr-act-audit will record the user, a phrase like “made a new ticket in support”, and a reference to the ticket created in a field called “ticket”.

I haven’t actually used it for analytics much. I built it to try to catch obscure errors to speed up my troubleshooting efforts. Like, if a user complains about something, I can go in and review their actions to have a better idea what they actually did.

Also, I haven’t tried integrating any dedicated analytics like Mixpanel or Keen yet, so I can’t compare.

---

<div class="post-metadata">

**Author:** ![sridharan.s](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/sridharan.s/32/17881_2.png) [@sridharan.s](https://forum.bubble.io/u/sridharan.s)\
**Post date:** [November 7, 2017, 2:58am UTC](https://forum.bubble.io/t/best-practices-storing-user-action-list/20076/3 "2017-11-07T02:58:47Z")

</div>

Thanks for sharing. Seems useful.
