title: Google Analytics Measurement protocol event tracking : events not logging
body: <p>I am trying to use Google Analytics Measurement protocol (available with Universal Analytics) to track an offline event.</p>
  
  <p>I am using the documentation here : <a href="https://developers.google.com/analytics/devguides/collection/protocol/v1/devguide#event" rel="nofollow">https://developers.google.com/analytics/devguides/collection/protocol/v1/devguide#event</a> </p>
  
  <p>Here is the CURL I am calling : </p>
  
  <pre><code>https://www.google-analytics.com/collect?v=1&amp;tid=UA-5520857-25&amp;cid=1260961011.1389432370&amp;t=event&amp;ec=Test-event-cat&amp;ea=Test-event-action&amp;el=&amp;ev=
  </code></pre>
  
  <p>I get the cid (client ID) via :</p>
  
  <pre><code>ga(function(tracker) {
    var clientId = tracker.get('clientId');
  });
  </code></pre>
  
  <p>Here is the full CURL call :</p>
  
  <pre><code>$getString = 'https://www.google-analytics.com/collect?';
  $getString .= http_build_query($data);
  
  $ch = curl_init();
  curl_setopt($ch, CURLOPT_URL, $getString);
  curl_setopt($ch, CURLOPT_HEADER, 0);
  
  curl_exec($ch);
  
  $info = curl_getinfo($ch);
  
  curl_close($ch);
  
  // TEST
  echo 'CURL call : '.$getString.'&lt;br /&gt;';
  echo 'Response : &lt;pre&gt;';
  print_r($info);
  echo '&lt;/pre&gt;';
  </code></pre>
  
  <p>It returns a 200 HTTP code (but I've read that its always the case, even if something is wrong).
  No event is shown in my Google Analytics account, even on the real time section.</p>
  
  <p>Do you have any idea about what I am doing wrong ?</p>
  
  <p>Thank you</p>