Eddystone URL only if app is not there vs UID

If I am using an app for retail purpose I want eddystone URL notification to come for the first time if app is not installed in users mobile and this URL will lead to app download and in case if app is alrerady there in phone then some other notifications would be coming with UID…something like “Welcome to this place and all”

How can we do it in this way using Eddystone