Store a metadata on a visitor across visits

Hi Matomo Team,

Is there a way to attach a property/metadata on a user that we can access/update across visits? I know Matomo has the custom dimensions feature where it can be used to store data on a visit, but seems like it is visit basis and is empty on page reload.

Our use case is: we want to track the accumulated number of a certain action on a single user. i.e. the first time of that action, and also subsequent times of that same action.
Is there any other feature in Matomo that we can use that satisfies our need?