From Google Analytics Tracking for Mobile Apps page:
The Android 1.6 OS release supports the use of a referrer URL parameter in download links to the Android Market. The Google Analytics SDK for Android uses this parameter to automatically populate referral/campaign information in Google Analytics for your application. This enables the source of the application install to be recorded and associated with future pageviews and events.
When is Steve going to provide this feature to developers for iPhone OS?