title: PhoneGap App not working with Google Analytics
body: <p>I am using the analytics.js to track the user activity using the code in web app. </p>
  
  <p>Now Phonegap app ios/android is built and want to track the user activity in Phonegap app also, but it is not giving the tracking results I have read and implemented the solutions as in </p>
  
  <p><a href="https://stackoverflow.com/questions/20020856/phonegap-google-analytics-not-tracking-at-all">Phonegap google analytics not tracking at all</a></p>
  
  <p><a href="https://github.com/blast-analytics-marketing/phonegap-google-universal-analytics" rel="nofollow noreferrer">https://github.com/blast-analytics-marketing/phonegap-google-universal-analytics</a></p>
  
  <p>My Problem is: both in native using phonegap and web app uses same set of pages , I would like to track the same pages both under single GA account using Dimension, but I am not able to do in phone gap.</p>
  
  <p>Could anyone help me on this. Thanks in advance for any help.</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="false" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
            (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
            m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
            })(window,document,'script','//www.google-analytics.com/analytics.js','ga');
            var ua="UA-XXXXXXX-Y";
            ga('create', ua, {'storage': 'none','clientId': "123"});
            ga('set', 'checkProtocolTask', null);
            ga('set','checkStorageTask',null);</code></pre>
  </div>
  </div>
  </p>