title: Use Google Analytics with Phonegap 2.1 without a plugin?
body: <p>I'm looking to use google analytics without a plugin with phoneGap 2.1.</p>
  
  <p>I followed this thread: </p>
  
  <p><a href="https://stackoverflow.com/questions/11026916/how-to-use-google-analytics-with-phonegap-without-a-plugin">How to use Google Analytics with Phonegap without a plugin?</a></p>
  
  <p>Step:<br/>
  1. download the ga.js<br/>
  2. modify the ga.js file by adding one character to it. Search the ga.js file for the word "file:" and replace it with "_file:".<br/>
  3. include the google analytics code in the top of your page<br/></p>
  
  <p>But it seems it doesn't work in phoneGap 2.1.</p>
  
  <p>Somebody has found a solution for this problem?</p>
  
  <p>Thank you</p>
  
  <hr>
  
  <p>in my ga.js file I have "_file:", </p>
  
  <p>in my index.html I have this code:</p>
  
  <pre><code>&lt;script type="text/javascript" src="js/ga.js"&gt;&lt;/script&gt; 
  </code></pre>
  
  <p>and in my javascript: </p>
  
  <pre><code>var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-36500003-1']);
  
  _gaq.push(['_setDomainName', 'none']);
  
  _gaq.push(['_setAllowLinker', true]);
  
  _gaq.push(['_trackPageview']);
  
  
  _gaq.push(['_trackEvent', 'IpadVideos', 'Play', 'Gone With the Wind']);
  </code></pre>
  
  <p>When I'm going in the reporting of Google, in the real time I have nobody and for my event action I have checked the next day and I have nothing...</p>
  
  <p>Something wrong in my code?</p>