Results 1 to 3 of 3

Thread: Problem in tracking events for sencha touch using Google Analytics

  1. #1
    Sencha User
    Join Date
    Mar 2012
    Location
    Hyderabad
    Posts
    41
    Answers
    2
    Vote Rating
    0
      0  

    Default Problem in tracking events for sencha touch using Google Analytics

    Hi,

    I'm trying to track page clicks for my app. For this, i'm using Google Analytics. On App load, it is counting the users properly. But, i need to track user's usage of app, in which page, user has visited, etc. details.

    My code for tracking page view on render is as follows:

    Code:
    <script type="text/javascript">
    
      var _gaq = _gaq || [];
      
      _gaq.push(
    		  ['_setAccount', 'UA-XXXXXX-X'],
    		  ['_setCustomVar',3,'login','login'],
    		  ['_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>
    And when user enters each view, in painted listener, i've added following code snippet.:

    Code:
    _gaq.push(['_trackEvent', 'LoginForm', 'clicked']);
    But, i was not able to see this tracked event data in my Google analytics account page.

    Please suggest me how to achieve tracking each view hit.

    Thanks

  2. #2
    Sencha - Community Support Team mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,020
    Answers
    3976
    Vote Rating
    1363
      0  

    Default

    First, the way you are listening is the painted event listener firing? Past that, sounds more like a google question.
    Mitchell Simoens @LikelyMitch
    Modus Create, Senior Frontend Engineer
    ________________
    Need any sort of Ext JS help? Modus Create is here to help!

    Check out my GitHub:
    https://github.com/mitchellsimoens

  3. #3
    Sencha User
    Join Date
    Mar 2012
    Location
    Hyderabad
    Posts
    41
    Answers
    2
    Vote Rating
    0
      0  

    Default

    @mitchellsimoens

    Yes, Event is getting fired and trackEvent is returning true aswell. It could be google's a question.


    Thanks

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •