title: Google Analytics SDK v4 Tracking Campaigns Emailing No Data
body: <p>I am trying to track Campaigns (emailing for example) with the Android SDK v4 but it's not working as we cannot see any data in our Google Analytics account.</p>
  
  <p>We are trying to use the code below to send the data to Google Analytics:</p>
  
  <p>URL we want to track:</p>
  
  <pre><code>URL SCHEME : scheme://www.example.com/commandes?utm_source=Mail_Invitation_Vente_ET&amp;utm_medium=email&amp;utm_term=ALL&amp;utm_content=ALL&amp;utm_campaign=TEST_CAMPAIGN
  OR
  URLs WEB:
  http://www.example.com/commandes?utm_source=Mail_Invitation_Vente_ET&amp;utm_medium=email&amp;utm_term=ALL&amp;utm_content=ALL&amp;utm_campaign=TEST_CAMPAIGN
  
  http://examplepetstore.com/index.html?utm_source=email&amp;utm_medium=email_marketing&amp;utm_campaign=summer&amp;utm_content=email_variation_1 
  (the documentation : https://developers.google.com/analytics/devguides/collection/android/v4/campaigns)
  </code></pre>
  
  <p>Code for tracking :</p>
  
  <pre><code>Tracker tracker = GoogleAnalytics.getInstance(this).newTracker("UA-XXXXX");
  tracker.enableExceptionReporting(true);
  tracker.enableAdvertisingIdCollection(true);
  tracker.enableAutoActivityTracking(true);
  tracker.setScreenName("SCREEN/ android");
  tracker.send(new HitBuilders.ScreenViewBuilder().setCampaignParamsFromUrl(URL_TO_TRACK).build());
  GoogleAnalytics.getInstance(context).dispatchLocalHits();
  </code></pre>
  
  <p>We also tried this:</p>
  
  <pre><code>HashMap&lt;String, String&gt; campaignMap = new HashMap&lt;&gt;(3);
  campaignMap.put("utm_source", SOURCE_TO_TRACK);
  campaignMap.put("utm_medium", MEDIUM_TO_TRACK);
  campaignMap.put("utm_campaign", CAMPAIGN_TO_TRACK);
  tracker.send(new HitBuilders.ScreenViewBuilder().setAll(campaignMap).build());
  </code></pre>
  
  <p>We want to track a click on a specific link through URL SCHEME (protocol or HTTP URL).</p>
  
  <p>Could you tell us if we did something wrong in my code?</p>
  
  <p>SDK version : play-services:7.5.0
  I am using Google Analytics v4.</p>