# Setting up an Analytics Collection

**URL:** <https://forum.adalo.com/t/setting-up-an-analytics-collection/10377>\
**Category:** Database\
**Created:** [March 16, 2021, 11:23am UTC](https://forum.adalo.com/t/setting-up-an-analytics-collection/10377 "2021-03-16T11:23:30Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![hg\_dxb](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/hg_dxb/32/7670_2.png) [@hg\_dxb](https://forum.adalo.com/u/hg_dxb)\
**Post date:** [March 16, 2021, 11:23am UTC](https://forum.adalo.com/t/setting-up-an-analytics-collection/10377/1 "2021-03-16T11:23:31Z")

</div>

Hi,

Getting used to database design so apologies if this is a rookie level question

I’d like to be able to track and update a few key user actions

1. the number of minutes of audio that someone listens to sessions
2. the number of plays of a session

I’d also like to collect analytics for the content itself  
3) # of views of a series  
4) # of plays of a series  
5) # of plays of a session

Would you recommend I add a separate analytics collection for users and content or that I add all these data points as properties of the users / sessions collections? Or should I approach this differently altogether?

I’m also not understanding the nuance between screen based actions and component based actions…would I add the action to update the relevant field on a screen level or a component level?

Thank you!

---

<div class="post-metadata">

**Author:** ![montetennis](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/montetennis/32/5904_2.png) [@montetennis](https://forum.adalo.com/u/montetennis)\
**Post date:** [March 16, 2021, 12:11pm UTC](https://forum.adalo.com/t/setting-up-an-analytics-collection/10377/2 "2021-03-16T12:11:41Z")

</div>

Hey there!  
Good question, I also struggled with for a client of mine’s app.

I first answer your last question: screen-based actions are actions that activate when the user visits the screen. For example, everytime the user arrives to a certain screen, you refresh the price.  
Component-based actions are actions that happen when the component is clicked.

For the metrics you want to track:  
1 Not currently possible, cause it’s neither a screen or component action  
2 This is a component action. When the user clicks play, you log the action in a collection  
3 This is a screen action. When the user access the page, log in collection  
4 same as 2  
5 same as 2

Hope to have been useful!

Paolo

---

<div class="post-metadata">

**Author:** ![Yongki](https://avatars.discourse-cdn.com/v4/letter/y/7c8e57/32.png) [@Yongki](https://forum.adalo.com/u/Yongki)\
**Post date:** [March 16, 2021, 8:50pm UTC](https://forum.adalo.com/t/setting-up-an-analytics-collection/10377/3 "2021-03-16T20:50:01Z")

</div>

> [@hg\_dxb](#):
>
> Would you recommend I add a separate analytics collection for users and content or that I add all these data points as properties of the users / sessions collections? Or should I approach this differently altogether?

I would put analytics property in users collection, because it is available as logged in user.

Along with switches (true/false) and personalizations, also temporary variables, that is why my users collection exploded.

But hey, as long as it works and easy to achieve, that is no-code mantra, until it doesn’t, that is when we need to think over again, but that is tomorrows’ problem.

I don’t like it either, but I realized that is the rules.

---

<div class="post-metadata">

**Author:** ![hg\_dxb](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/hg_dxb/32/7670_2.png) [@hg\_dxb](https://forum.adalo.com/u/hg_dxb)\
**Post date:** [March 18, 2021, 8:48am UTC](https://forum.adalo.com/t/setting-up-an-analytics-collection/10377/4 "2021-03-18T08:48:40Z")

</div>

> [@Yongki](#):
>
> Along with switches (true/false) and personalizations, also temporary variables, that is why my users collection exploded.

You’re right - I think I need to not overengineer it and just let it work up to a point and then refactor it once i’m more settled
