Display Total views in the page

Hi , i am trying to display the number of " Total views " per each page in my website , i think i made the needed steps , but it doesn’t display the number or even update the data “Total Views” number , am i missing something ?

Does Current User have access to the apps data type and the Total Views field on it, or are they restricted by Privacy Rules? Check that.

Hi keith , thanks for the replay , i have made No restriction on the "Total views " field , i also checked the "Total views " box from the data privacy

Where is the step that assigns one of the rows in table “apps” to the current page?

Thanks mishav , regarding your reply , i don’t understand what step you mean !! do you mean the value of "Total view " ? i set the default value for the " Total views " to 1 ,
Total%20Views3

Your apps table might have …

row 1, total=1, unique_id=xyz1233…reallylong
row 2, total=1
row 3, total=1

The user navigates to your page, the page has one row of apps associated with it: current page’s apps.

The URL will show the unique id of the appropriate row … https://mysite.com/mypage/xyz1233...reallylong

So, how does the user navigate to that page, are you setting the right data for the page?

Hi mishav , i think the user navigate to that page using the product ID , for example when i click on the product page i redirect to that page [ the " product ID " display on the URL of that page ] …

  • In my case in the product page i set the data source to " parent group’s app total view " [ design , check the screen shot above ] , but i think my problem is in the work flow : [ when the page load / make changes to ] that’s why the data not changes in the first place when the page load , i can’t find parent group page !! all i can set is current page ! , or if i need to set it to another thing ! .

  • I made this example and it works fine with me : https://bubble.io/page?name=index&id=mynewtest101&tab=tabs-1
    but in my case above i don’t know how to make the work flow !!

@misha is on the right track. What he’s saying is WHICH “apps” are you changing here? The question is, are these two things of “apps” type, the same thing:

That’s probably your issue. Sorry I totally overlooked that when originally reading your question.

Anyway, go look at your App Data tab and sort your “apps” things by modified date.

What you might also do is put a repeating group on the page. Make it display all “apps”. Have items in the cell that report the “apps” unique id and its Total views value. Watch which one(s) change on your page. You’ll see.

2 Likes

Hi Keith , thanks for the reply and help , it works fine now :

  • I have changed the field "Things to change " from "current page apps " to "page app group " where the "total view number display … what surprised me actually was when a new option become available in the things to change field which is " This app " , it allows me to set the [ total views = This app’s total view + 1 ]

Thanks you @keith @mishav for your support
Best Regards

2 Likes

Good result, @ciscotreasure

I’ve found that naming a data table in the singular, i.e. “app” instead of “apps”, helps with understanding the expression buillding.

1 Like

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