Post

That's a different thing. The code snippet is not about retrieving the deeplink, but the referrer link. So e.g. if you open "example[.]com" in your app from a Google search, you'll get a link to the Google search page (aka what the browser sets as referrer).

What about if it was launched from a deeplink in safari, but then needed to be installed from the store as a result of hitting the deeplink, and then the user didn't reopen the deeplink? Conversion funnels on mobile are so annoying to track.