title: autoActivityTracking while using google-services.json
body: <p>I read about usage of google-services.json in <a href="https://stackoverflow.com/questions/31597953/what-does-google-services-json-really-do/31598587#31598587">What does google-services.json really do?</a> : <strong>After releasing your app in public, it will not work without the json file.</strong></p>
  
  <pre><code>GoogleAnalytics analytics = GoogleAnalytics.getInstance(this);
  mTracker = analytics.newTracker(R.xml.global_tracker);
  </code></pre>
  
  <p>I read in another article about <code>autoActivityTracking</code>. We can also create a xml resource file under <code>res/xml/</code> and setup Activities we want to track:</p>
  
  <pre><code>        &lt;string name="ga_trackingId"&gt;UA-XXXXXX-X&lt;/string&gt;
  
          &lt;bool name="ga_autoActivityTracking"&gt;true&lt;/bool&gt;
  
          &lt;screenName name="com.example.android.dinnerapp.MainActivity"&gt;
              Main screen
          &lt;/screenName&gt;
  
          &lt;screenName name="com.example.android.dinnerapp.OrderDinnerActivity"&gt;
              Order dinner
          &lt;/screenName&gt;
  
          &lt;screenName name="com.example.android.dinnerapp.RemoveMealActivity"&gt;
              Eradicate dinner
          &lt;/screenName&gt;
  
          &lt;screenName name="com.example.android.dinnerapp.ShowDinnerActivity"&gt;
              Show dinner
          &lt;/screenName&gt;
  
          &lt;screenName name="com.example.android.dinnerapp.ShowRecipeActivity"&gt;
              Show recipe
          &lt;/screenName&gt;
  </code></pre>
  
  <p>And set it up by using :</p>
  
  <pre><code>GoogleAnalytics analytics = GoogleAnalytics.getInstance(this);
  mTracker = analytics.newTracker(R.xml.track_app);
  </code></pre>
  
  <p>I wonder how it is possible when we are using json file instead?</p>