Page views as data type

Hey,

I need to have the number of visitors in a page that I can filter (last 30 days, last 7 days, etc…).

So, I think the best solution is to have a Page view data type with 0 fields (just the default ones), and everytime someone loads a page, I create a Page view, and I would have the Created date for filtering (last 30 days, last 7 days, etc…).

All seems good, but I have 2 questions.

  1. In one point there will be thousands and thousands of entries, and I don’t know if having that much entries is going to be a problem in the long run. Also, regarding the Bubble’s possible pricing based on database count, this would cost a lot of money.

  2. Is there any other possible solution for this?

Thanks in advance :slight_smile: :computer:

Maybe add a data type Page and add a field view count that is just a count of views and then you could have page views that is a list of Page Views saved to it as well for sorting but once the views fall past a specified date range like 30 days or 3 months then delete the Page Views but you will still have record of the count?

Thanks, @williamtisdale,

Yes, this could be a solution, the only problem is that a user can’t see the last 60 days or see the views from a specific day.

Anyone?

Anyone?

I think you’ll find your answer in this stock price app walkthrough:

But instead of “price” think “page view”.

Thanks, @brandon8,

The thing is that lists are limited to 10 000 entries.

I think I will be doing a Page View Data Type hoping that Bubble doesn’t implement limits of database in the new pricing.

This topic was automatically closed after 70 days. New replies are no longer allowed.