title: Disable the Analytics service for Firebase Cloud Messaging
body: <p>We mirgrated from GCM to FCM without any problems. The notification service is running very well. However, we have to disable the app measurement part of the Firebase Analytics service for legal reasons.</p>
  
  <p>We used this guide to disable the analytics part
  <a href="https://firebase.google.com/support/guides/disable-analytics" rel="noreferrer">https://firebase.google.com/support/guides/disable-analytics</a></p>
  
  <p>So we put this flag to the manifest file:</p>
  
  <pre><code>&lt;meta-data android:name="firebase_analytics_collection_enabled" android:value=false /&gt;
  </code></pre>
  
  <p>and we also disabled the collection programmatically:</p>
  
  <pre><code>FirebaseAnalytics.getInstance(this).setAnalyticsCollectionEnabled(false);
  </code></pre>
  
  <p>Unfortunately, data is still collected and we can see new events in the Firebase Analytics Console. Is there any possibility to turn off the analytics services completely?</p>
  
  <p>Thanks for your help.</p>
  
  <p>Edit: I also have the deactivation meta-data in the application tag:</p>
  
  <pre><code>&lt;meta-data android:name="firebase_analytics_collection_deactivated" android:value=true /&gt;
  </code></pre>