Hello @Mariana_HH
Here is Fun Solution for You:
In SharePoint Create a List called "ControllerUseCount"
in the List Store columns
Title = ButtonID next
ButtonName
ScreenName
PressCount
Add New Record and put
Title = "1" and Rest depend what kind of button it is.
Now in the Button at end add this code
With(
{
LastCount: LookUp(
ControllerUseCount,
Title = "1",
PressCount
)
},
Patch(
ControllerUseCount,
{ID: 1},
{
Title:"1",
PressCount: LastCount + 1}
)
)
When You add this code to other buttons change ID to Record ID created by SharePoint and keep it match with Title
After You press the button, it starts counting clicks in SharePoint
Hope it have Helps