title: Android referral tracking does not work
body: <p>I am attempting to get Android Referral tracking to work. I am following the only documentation I have found here <a href="http://code.google.com/mobile/analytics/docs/android/#referrals">http://code.google.com/mobile/analytics/docs/android/#referrals</a>  I have the following in my android manifest file </p>
  
  <pre><code>&lt;receiver  
  android:name="com.google.android.apps.analytics.AnalyticsReceiver"  
  android:exported="true"&gt;  
      &lt;intent-filter&gt;  
                  &lt;action android:name="com.android.vending.INSTALL_REFERRER" /&gt;  
          &lt;/intent-filter&gt;  
  &lt;/receiver&gt;  
  &lt;receiver android:name="com.package.Receiver" android:exported="true"&gt;  
          &lt;intent-filter&gt;  
                  &lt;action android:name="com.android.vending.INSTALL_REFERRER" /&gt;  
          &lt;/intent-filter&gt;  
  &lt;/receiver&gt;  
  &lt;uses-sdk android:minSdkVersion="4"/&gt;  
  </code></pre>
  
  <p>com.package.Receiver starts with: </p>
  
  <pre><code>public void onReceive(Context paramContext, Intent paramIntent) {  
          String str1 = paramIntent.getStringExtra("referrer");  
          Log.i("myapp", "action: '" + paramIntent.getAction() + "'  
  referrer string: '" + str1 + "'"); 
  </code></pre>
  
  <p>Also with a little bit of decompiling com.google.android.apps.analytics.AnalyticsReceiver has the following code in it: </p>
  
  <pre><code>public void onReceive(Context ctx, Intent intent)  
  /*     */   {  
  /*  24 */     String referrer = intent.getStringExtra("referrer");  
  /*     */  
  /*  26 */     if ((!  
  ("com.android.vending.INSTALL_REFERRER".equals(intent.getAction())))  
  || (referrer == null))  
  /*     */     {  
  /*  28 */       return;  
  /*     */     }  
  /*     */ 
  /*  31 */     String formattedReferrer = formatReferrer(referrer);  
  /*     */  
  /*  33 */     if (formattedReferrer != null) {  
  /*  34 */       PersistentEventStore store = new  
  PersistentEventStore(ctx);  
  /*  35 */       store.setReferrer(formattedReferrer);  
  /*  36 */       Log.d("googleanalytics", new  
  StringBuilder().append("Stored   
  referrer:").append(formattedReferrer).toString());  
  /*     */     } else {  
  /*  38 */       Log.w("googleanalytics", "Badly formatted referrer, ignored");  
  /*     */     }  
  /*     */   }  
  </code></pre>
  
  <p>Note the two lines 36 and 38 that Log "googleanalytics" I have tried pushing the above app to the market, downloading it on my Nexus One (after uninstalling a previous version of the app). I have generated a link using the google page I linked to at the beginning of this post </p>
  
  <p><code>http://www.google.com/url?sa=D&amp;q=http://market.android.com/search%3Fq%3Dpname:com.package.app%26referrer%3Dutm_source%253Dgoogle%2526utm_medium%253Dcpc%2526utm_term%253Drunning%25252Bshoes%2526utm_content%253Dcontent1%2526utm_campaign%253Dslogan&amp;usg=AFQjCNFctwqk1WgWl0bhiIBNVqy3U4OPRw</code></p>
  
  <p>I attached logcat to my Nexus One while I download the app from that link, I do not see any logs from "googleanalytics" or "myapp". The rest of the google analytics library does work for my app. I.E. I see records on google analytics about pages hits etc. However all the traffic sources are "Direct Traffic". I am at a loss as to what is going on. Does anyone 
  have any insight into what I might be doing wrong? </p>