title: iOS: How to get install referrer source
body: <p>I want to find out how the user installed the app using what source (attribution).</p>
  
  <p>For Android, it's possible to get the referrer's URL, but I haven't found an obvious way for iOS. There are external services such as AppsFlyer (<a href="http://support.appsflyer.com/entries/69796693-Accessing-AppsFlyer-Attribution-Conversion-Data-from-the-SDK-Deferred-Deep-linking-" rel="noreferrer">http://support.appsflyer.com/entries/69796693-Accessing-AppsFlyer-Attribution-Conversion-Data-from-the-SDK-Deferred-Deep-linking-</a>) that let's you do this.</p>
  
  <p>I noticed that starting iOS 8, developers could append the publisher id and the campaign id to the App Store URL for iTunes Connect Analytics (<a href="http://www.applift.com/blog/new-era-attribution-analytics.html" rel="noreferrer">http://www.applift.com/blog/new-era-attribution-analytics.html</a>). Is it possible to get the campaign id and the publisher id inside the app? I couldn't find any API changes or resources on this.</p>
  
  <p>Any help would be appreciated. Thanks.</p>