Eddystone URL + UID how to pair together?

Is there a way on IOS and on Android to pair in code between an eddystone url packet
and the eddystone UID packet?
How can I know which beacon sent a specific URL based on its UID?
Could it be done just by the advertised packets without connecting to the beacon?
Is it done by a mac address?

An option it’s with UTM parameters in the URL, but you’re gonna need to do the analysis in the website not in the app as you want.