How to identify Appclip launched due to QR code scan or due to spotlight search

I have implemented an appclip where I want to differentiate between whether user scanned a QR code and hence the appclip got opened or because user searched the app in spotlight and hence the appclip got opened as accordingly I want to display an alert to the end user that he already has a booking in queue.