Can I help identify unique users?

We have a mobile website whose visitors are mostly on older phones with no javascript or cookie support. This makes it challenging to identify repeat visitors. We’ve figured out some ways to identify some visitors and would like to pass this user ID to Piwik. Is there an easy way of overriding the visitor ID to use an ID that we pass? Cookies are still the best way to identify a unique visitor, so ideally cookies would be checked first, then this visitor ID we pass in.

Thanks

You can “force” a visit to be recorded for a given visitorId. visitorId must be 16 characters hexadecimal long. See the function setVisitorId() in the tracking API: Tracking API - Analytics Platform - Matomo

When you want to force this visitorId you must also pass an admin token_auth to the tracking request.