title: Android Google Analytics - 6 GET requests dispatched for single trackPageView
body: <p>I have a fairly complex project that has many types of classes that I'm trying to track (fragments, activities, list fragments, mapactivites) etc. and I am trying to avoid using the easy tracker because I can't simply subclass that one class.</p>
  
  <p>I have disabled all my tracking code in my various activities to attempt to pinpoint this and left just the code in my main Application subclass. I have deleted the app and reinstalled in the hopes of clearing anything that might be in a Google Analytics db file.</p>
  
  <p>Here's the only Google Analytics related code I have:</p>
  
  <pre><code>    public class MyApplication extends Application {
  
      @Override
      public void onCreate() {
          super.onCreate();
  
      //Track app launch with version info
      PackageInfo pInfo = null;
      try {
          pInfo = getPackageManager().getPackageInfo(getPackageName(), 0);
      } catch (NameNotFoundException e) {
          e.printStackTrace();
      }
  
      String pageValue = "/app_launch/" + pInfo.versionName;
  
          tracker = GoogleAnalyticsTracker.getInstance();
          tracker.setDebug(true);
          tracker.startNewSession(getString(R.string.ga_web_property_id), this);      
          tracker.trackPageView(pageValue);
          tracker.dispatch();
          /etc...
  
      }
  }
  </code></pre>
  
  <p>When I put a breakpoint and watch catlog this is what I get when dispatch() is called.</p>
  
  <p>I'm totally confused why this is generating 6 tracking nearly identical GET requests to be dispatched. I've redacted my Google Analytics UA ID but otherwise this this represents the output of running the above onCreate a single time at app startup.</p>
  
  <pre><code>02-06 15:48:54.831: I/GoogleAnalyticsTracker(351): User-Agent: GoogleAnalytics/1.4.2 (Linux; U; Android 2.2; en-us; google_sdk Build/FRF91)
  02-06 15:48:54.831: I/GoogleAnalyticsTracker(351): GET /__utm.gif?utmwv=4.8.1ma&amp;utmn=764228238&amp;utmcs=UTF-8&amp;utmsr=480x800&amp;utmul=en-US&amp;utmp=%2Fapp_launch%2F1.0&amp;utmac=UA-99999999-9&amp;utmcc=__utma%3D1.35850864.1328029689.1328545392.1328571456.14%3B&amp;utmhid=-719954799&amp;utmht=1328571456916&amp;utmqt=677896 HTTP/1.1
  02-06 15:48:54.970: I/GoogleAnalyticsTracker(351): Host: www.google-analytics.com
  02-06 15:48:54.970: I/GoogleAnalyticsTracker(351): User-Agent: GoogleAnalytics/1.4.2 (Linux; U; Android 2.2; en-us; google_sdk Build/FRF91)
  02-06 15:48:54.970: I/GoogleAnalyticsTracker(351): GET /__utm.gif?utmwv=4.8.1ma&amp;utmn=258792797&amp;utmcs=UTF-8&amp;utmsr=480x800&amp;utmul=en-US&amp;utmp=%2Fapp_launch%2F1.0&amp;utmac=UA-99999999-9&amp;utmcc=__utma%3D1.35850864.1328029689.1328571456.1328572132.15%3B&amp;utmhid=968419361&amp;utmht=1328572132799&amp;utmqt=2154 HTTP/1.1
  02-06 15:48:55.021: I/GoogleAnalyticsTracker(351): Host: www.google-analytics.com
  02-06 15:48:55.021: I/GoogleAnalyticsTracker(351): User-Agent: GoogleAnalytics/1.4.2 (Linux; U; Android 2.2; en-us; google_sdk Build/FRF91)
  02-06 15:48:55.021: I/GoogleAnalyticsTracker(351): GET /__utm.gif?utmwv=4.8.1ma&amp;utmn=764228238&amp;utmcs=UTF-8&amp;utmsr=480x800&amp;utmul=en-US&amp;utmp=%2Fapp_launch%2F1.0&amp;utmac=UA-99999999-9&amp;utmcc=__utma%3D1.35850864.1328029689.1328545392.1328571456.14%3B&amp;utmhid=-719954799&amp;utmht=1328571456916&amp;utmqt=678094 HTTP/1.1
  02-06 15:48:55.100: I/GoogleAnalyticsTracker(351): Host: www.google-analytics.com
  02-06 15:48:55.100: I/GoogleAnalyticsTracker(351): User-Agent: GoogleAnalytics/1.4.2 (Linux; U; Android 2.2; en-us; google_sdk Build/FRF91)
  02-06 15:48:55.100: I/GoogleAnalyticsTracker(351): GET /__utm.gif?utmwv=4.8.1ma&amp;utmn=764228238&amp;utmcs=UTF-8&amp;utmsr=480x800&amp;utmul=en-US&amp;utmp=%2Fapp_launch%2F1.0&amp;utmac=UA-99999999-9&amp;utmcc=__utma%3D1.35850864.1328029689.1328545392.1328571456.14%3B&amp;utmhid=-719954799&amp;utmht=1328571456916&amp;utmqt=678175 HTTP/1.1
  02-06 15:48:55.171: I/GoogleAnalyticsTracker(351): Host: www.google-analytics.com
  02-06 15:48:55.171: I/GoogleAnalyticsTracker(351): User-Agent: GoogleAnalytics/1.4.2 (Linux; U; Android 2.2; en-us; google_sdk Build/FRF91)
  02-06 15:48:55.171: I/GoogleAnalyticsTracker(351): GET /__utm.gif?utmwv=4.8.1ma&amp;utmn=764228238&amp;utmcs=UTF-8&amp;utmsr=480x800&amp;utmul=en-US&amp;utmp=%2Fapp_launch%2F1.0&amp;utmac=UA-99999999-9&amp;utmcc=__utma%3D1.35850864.1328029689.1328545392.1328571456.14%3B&amp;utmhid=-719954799&amp;utmht=1328571456916&amp;utmqt=678251 HTTP/1.1
  02-06 15:48:55.251: I/GoogleAnalyticsTracker(351): Host: www.google-analytics.com
  02-06 15:48:55.251: I/GoogleAnalyticsTracker(351): User-Agent: GoogleAnalytics/1.4.2 (Linux; U; Android 2.2; en-us; google_sdk Build/FRF91)
  02-06 15:48:55.251: I/GoogleAnalyticsTracker(351): GET /__utm.gif?utmwv=4.8.1ma&amp;utmn=764228238&amp;utmcs=UTF-8&amp;utmsr=480x800&amp;utmul=en-US&amp;utmp=%2Fapp_launch%2F1.0&amp;utmac=UA-99999999-9&amp;utmcc=__utma%3D1.35850864.1328029689.1328545392.1328571456.14%3B&amp;utmhid=-719954799&amp;utmht=1328571456916&amp;utmqt=678324 HTTP/1.1
  </code></pre>