Hi. The document you’re linking refers to a product that is currently called Matomo. However, I’m almost certain that Piwik PRO can be configured to meet all the mentioned requirements, since Piwik PRO and Matomo have common roots. Could you list the requirements / settings that you would like to meet / adjust while using Piwik PRO?
PiwikProSdk.setAnonymizationState(true) - will cause the data to be sent, but each time you run the application the visitorID will change. The userID and userMail fields will not be sent.
PiwikProSdk.setOptOut(true) - will disable tracking completely, as if it had never been implemented. Note that this flag must be set each time the app starts up and will default to false.
Additional, the VisitorID is generated automatically when the app is installed and this ID stored on the device. It changes when the user deletes the app and reinstalls it.
If you would like to change the visitorID from time to time, e.g. after 7 days, you would need to implement your solution that would store the date of the last created vistiorID and trigger after a timeout:
I am glad to have been able to help solve your problems.
Your solution for the timestamp as an identifier should be fine, but you need to know that there is a likelihood that two different users will receive the same identifier.