5 Replies Latest reply on Dec 10, 2013 3:14 AM by Fernando Coelho da Silva

    Rhodes Aplication Google Analitics Android

    Fernando Coelho da Silva

       

       

      Hello Guys, I need help! I'm not able to do the work in dispositovos Analitycs Google Android (Sansung S3, S4 Sansung, Moto X, Sansung Galaxy Note). Google Analtycs is not counting on these devices.
      The Iphone is working perfectly and Some old android devices.

      So I put in my code: Layout.erb

      <script type="text/javascript">
         
             var _gaq = _gaq | | [];
             _gaq.push (['_setAccount', 'UA-XXXXX-X']);
             _gaq.push (['_trackPageview']);
         
             (function () {
               var ga = document.createElement ('script'); ga.type = 'text / javascript'; ga.async = true;
               ga.src = ('https:' == document.location.protocol 'https://ssl': 'http://www'?) + '.google-analytics.com/ga.js';
               var s = document.getElementsByTagName ('script') [0]; s.parentNode.insertBefore (ga, s);
             }) ();
         
      </ script>

       

        • Re: Rhodes Aplication Google Analitics Android
          Kutir Mobility

          Hi Fernando,

          Its working fine for us in Google Nexus and some simple android devices.

          Is possible for you to share a portion of source code so that e can test it.

           

          Visnupriya R

          Kutir Mobility

            • Re: Rhodes Aplication Google Analitics Android
              Fernando Coelho da Silva

              Hi Kutir , this is my code Layout.erb:

               

              <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

              <html xmlns="http://www.w3.org/1999/xhtml">

                

                  <head>

                    

                    <title>Guia Médico</title>

                        

                    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0"/>

                  

                    <link rel="stylesheet" href="/public/jqmobile/jquery.mobile.structure-1.0.1.min.css">

                  

                    <% if System::get_property('platform') == 'APPLE'%>

                       <link href="/public/css/iphone.css" type="text/css" rel="stylesheet"/>  

                    <% elsif System::get_property('platform') == 'ANDROID' %>

                        <link href="/public/css/android.css" type="text/css" rel="stylesheet"/>  

                    <% end %>                

               

                    <script src="/public/jquery/jquery-1.6.4.min.js"></script>

                    <script src="/public/jquery/jquery.json-2.3.min.js"></script>

                    <script>

                         $(document).bind("mobileinit", function(){

                               $.mobile.loadingMessage = false;

                               $.mobile.loadingMessage = "Carregando...";

                               $.mobile.loadingMessageDelay = 50;

                               $.mobile.defaultPageTransition = 'slide';

                               $.mobile.defaultDialogTransition = 'slide';

                               $.mobile.page.prototype.options.domCache = true;

                           });

                         

                           $( document ).bind( "pageload", function( event, data ){

                               hideLoadingMsg();

                           });

               

                    </script>

                   

                    <script src="/public/jqmobile/jquery.mobile-1.0.1-custom.min.js"></script>

                    <script src="/public/js/jqmobile-patch.min.js"></script>

                           

                  </head>  

                

                  <body data-platform="<%= System::get_property('platform') %>" >

                      <%= @content %>      

                  </body>

               

                  <script>

                     var _gaq = _gaq || [];

                     _gaq.push(['_setAccount', 'UA-XXXXXX-X']);

                     _gaq.push(['_trackPageview']);

                     (function() {

                       var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;

                       ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';

                       var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);

                     })();

                  </script>

                 

              </html>

                • Re: Rhodes Aplication Google Analitics Android
                  Kutir Mobility

                  Fernando,

                   

                  For Google to use your Google Analytics tracking code for verification, the tracking code must be in the <head> (not the <body>) section of your page.

                  Please refers this link Verification: Google Analytics tracking code - Webmaster Tools Help

                   

                  Visnupriya R

                  Kutir Mobility

                    • Re: Rhodes Aplication Google Analitics Android
                      Fernando Coelho da Silva

                      Hi Kutir ,

                      I had tried putting the code in Google Analitycs <head> < / head> more also did not work .

                      To test I leave Google open Analitycs page in realtime , and the same is not computing .

                      I believe it is a problem with the Android WebKit(AppleWebKit/534.30 version 4.0 Mobile Safari/534.30) > 4.0  that Rhodes is running on newer devices like the Moto X, Sansung S3 , S4 Sansung . Because it works perfectly on older devices such as :

                      Apple iPhone
                      Apple iPad
                      Samsung GT - I9070 Galaxy S Advance
                      Samsung Galaxy Y GT - S5360B
                      Samsung GT - S6102B Galaxy Y Duos
                      Samsung GT - S6802B Galaxy Ace Duos
                      Samsung GT - S5830 Galaxy Ace
                      Samsung GT - I9100 Galaxy S II
                      Samsung Galaxy GT - S5300B Pocket
                      Apple iPod
                      Samsung GT - I9000B Galaxy S Vibrant
                      Samsung GT - N7000 Galaxy Note
                      Samsung GT - S5302 Galaxy Pocket Duos
                      ST25a SonyEricsson Xperia U
                      LG Optimus L3 E400f
                      LG Optimus Dual Sim P698F
                      Samsung Galaxy Ace GT - S5830B
                      LG Optimus L3 E405F
                      Motorola MB860 Atrix
                      Samsung GT - S7500L Galaxy Ace Plus
                      Motorola XT626
                      Samsung Galaxy Ace GT - I8160L 2
                      LG E510 Optimus Hub
                      Samsung GT - I8530
                      Samsung GT - S5367 Galaxy Y Samsung TV
                      Motorola DEFY MB525
                      Samsung GT - S5570B
                      LG P970h Optimus Black
                      Motorola MB526
                      Motorola MILESTONE 2 A953
                      Motorola MotoXT860
                      Motorola Atrix XT682 TV
                      Samsung GT - P1000 Galaxy Tab
                      Samsung GT - i5500 Galaxy Europa
                      Samsung GT - I8150 Galaxy W
                      Motorola RAZR XT910 XT910 Spider
                      Samsung GT - B5510 Galaxy Y
                      Samsung GT - S6802 Galaxy Ace Duos
                      SonyEricsson Live WT19a
                      LG Optimus One P500h
                      LG Optimus 3D P920h
                      Samsung Galaxy Fit GT - S5670B
                      LG Optimus Me P350F
                      Sony Xperia C1604 Dual E
                      LG P990h Optimus 2X
                      Motorola Defy Mini XT320
                      Motorola XT303 Motosmart Me
                      Motorola XT316 Dominoq
                      SonyEricsson Xperia Mini Pro SK17a
                      Motorola XT317
                      Samsung GT - B5512
                      C660h LG Optimus Pro
                      Motorola XT560 Defy Pro
                      Samsung GT - S6102 Galaxy Y Duos
                      SonyEricsson Xperia PLAY R800a
                      SonyEricsson Xperia U ST25i
                      LG Optimus L3 E405
                      LG P720h Optimus 3D Max
                      Samsung GT - S6500 Galaxy Mini 2
                      Samsung GT - I5510T
                      Samsung GT - S5570 Galaxy Mini
                      Samsung Galaxy Ace GT - S5830i
                      Samsung GT - S5830L Galaxy Ace
                      LG P940 Prada 3.0
                      GINOVO MID
                      Samsung GT - I9003 Galaxy SL
                      Samsung GT - S7500 Galaxy Ace Plus
                      SonyEricsson Xperia Arc LT18a
                      SonyEricsson Xperia Pro MK16
                      SonyEricsson ST27i
                      BP I9300
                      Huawei S7_Slim
                      Huawei U8667
                      LG P936 Optimus LTE
                      LG P990 Optimus 2X
                      Samsung GT - S5300 Galaxy Pocket
                      Samsung GT - S5360 Galaxy Y
                      Samsung SGH - I727 Galaxy S II Skyrocket
                      SonyEricsson Xperia Arc LT15i
                      Feiteng GT - I9300
                      LG Optimus L3 E400
                      LG P350 Optimus Me
                      LG P725 Optimus 3D Max
                      Meizu M9
                      Motorola XT531 Fire XT
                      Motorola XT532
                      Motorola XT615
                      Samsung GT - I9000 Galaxy S
                      Samsung GT - S5570L
                      Samsung Galaxy Ace GT - S5830M
                      Samsung SGH - I897 Galaxy S Captivate
                      SonyEricsson Xperia Arc LT18i
                      SonyEricsson LT26i Xperia Arc HD
                      MT11a SonyEricsson Xperia Neo V
                      SonyEricsson Xperia Neo MT15i
                      SonyEricsson Xperia PLAY R800i
                      SonyEricsson Xperia X10 X10a