That's a tough cookie to solve. So here's the hypothetical. I create a trashware game app. Typical low-hanging fruit. I set it as a handler for amazon.com links. Then in my app I handle these links in a convincing web container.
And obvious, mangle the links with my referrer URL in the process.
I call this a hypothetical, but the only reason it is, is that apple wouldn't allow me to register as a handler for amazon.com.