title: For javascript the call to api "gapi.auth.authorize" for google analytics not getting executed.
body: <p>I have been trying to use Google Analytics Core Reporting API with JavaScript. 
  I am new to it and I was trying to use the sample code provided by google for <a href="https://code.google.com/p/google-api-javascript-client/source/browse/#hg/samples/analytics/v3" rel="noreferrer">core_reporting_api_v3</a>.
  But after the <code>core_reporting_api_v3.html</code> file is ran it calls <code>auth_util.js</code>.</p>
  
  <p>Code from auth_utils.js: </p>
  
  <pre><code>function checkAuth() 
  {
      gapi.auth.authorize({client_id: clientId, scope: scopes}, handleAuthResult);
  }
  
  function handleAuthResult(authResult) 
  {
      alert("made it");
      if (authResult) 
      {
          gapi.client.load('analytics', 'v3', handleAuthorized);
      } 
      else 
      {
          handleUnAuthorized();
      }
  </code></pre>
  
  <p>Here in <code>checkAuth()</code> function there is a call made to google api <code>gapi.auth.authorize</code> with the client Id, scopes, immediate(tried for both :true/false)  and callback function. And it should pop-up an authorization window for user authorization. After that the callback function is called. 
  But this pop-up window never appears. Please help me with this, I am not getting what the problem is. One might think the problem is with credentials but I am using the same credentials using python and getting the results successfully. Is there any way I can track the process going behind in the browser like: what call is being made and where is the process getting stuck? Is there any tutorial for writing this <code>gapi.auth.authorize</code> call in raw form in javascript as a REST API?</p>