title: Android Google Analytics Tracking
body: <p>I have set up Google Analytics v2 beta on a test project as bellow</p>
  
  <p><strong>MainActivity.java</strong></p>
  
  <pre><code>public class MainActivity extends Activity {
      Context context;
  
      @Override
      protected void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.activity_main);
  
          context = this;
  
          // Set Context to Google Analytics
          EasyTracker.getInstance().setContext(context);
      }
  
      @Override
      protected void onStart() {
          super.onStart();
          EasyTracker.getInstance().activityStart(this);
  
          EasyTracker.getInstance();
          Tracker myTracker = EasyTracker.getTracker();
          myTracker.sendView("harsha");
      }
  
      @Override
      protected void onStop() {
          super.onStop();
          EasyTracker.getInstance().activityStop(this);
      }
  
      @Override
      public boolean onCreateOptionsMenu(Menu menu) {
          // Inflate the menu; this adds items to the action bar if it is present.
          getMenuInflater().inflate(R.menu.activity_main, menu);
          return true;
      }
  
  }
  </code></pre>
  
  <p>analytics.xml</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;resources xmlns:tools="https://schemas.android.com/tools" tools:ignore="TypographyDashes"&gt;
  
      &lt;!-- Replace placeholder ID with your tracking ID --&gt;
      &lt;string name="ga_trackingId"&gt;UA&amp;#8211;37418075&amp;#8211;1&lt;/string&gt;
  
      &lt;!-- Enable automatic activity tracking --&gt;
      &lt;bool name="ga_autoActivityTracking"&gt;true&lt;/bool&gt;
  
      &lt;!-- Enable automatic exception tracking --&gt;
      &lt;bool name="ga_reportUncaughtExceptions"&gt;true&lt;/bool&gt;
      &lt;bool name="ga_debug"&gt;true&lt;/bool&gt;
      &lt;!-- The screen names that will appear in your reporting --&gt;
      &lt;string name="com.m7.google_analytics_v2.BaseActivity"&gt;Home&lt;/string&gt;
  
  &lt;/resources&gt;
  </code></pre>
  
  <p>I have been trying to send the tracking to Google Analytics Server but not able to find any hits or activity of any kind. Does it take time for it to reflect ?</p>
  
  <p>I find this in the Log Cat</p>
  
  <pre><code>01-13 15:16:52.360: I/GAV2(23176): Thread[GAThread,5,main]: putHit called
  01-13 15:16:52.360: I/GAV2(23176): Thread[GAThread,5,main]: Sending hit to store
  01-13 15:16:52.440: I/GAV2(23176): Thread[GAThread,5,main]: putHit called
  01-13 15:16:52.440: I/GAV2(23176): Thread[GAThread,5,main]: Sending hit to store
  01-13 15:16:53.825: I/GAV2(23176): Thread[GAThread,5,main]: putHit called
  01-13 15:16:53.825: I/GAV2(23176): Thread[GAThread,5,main]: Sending hit to store
  01-13 15:16:53.905: I/GAV2(23176): Thread[GAThread,5,main]: putHit called
  01-13 15:16:53.905: I/GAV2(23176): Thread[GAThread,5,main]: Sending hit to store
  01-13 15:16:57.840: I/GAV2(23176): Thread[GAThread,5,main]: putHit called
  01-13 15:16:57.840: I/GAV2(23176): Thread[GAThread,5,main]: Sending hit to store
  01-13 15:16:57.945: I/GAV2(23176): Thread[GAThread,5,main]: putHit called
  01-13 15:16:57.945: I/GAV2(23176): Thread[GAThread,5,main]: Sending hit to store
  </code></pre>