1. #1
    Ext User
    Join Date
    Sep 2010
    Posts
    33
    Vote Rating
    0
    Steve Lewis is on a distinguished road

      0  

    Default Google Analytics Use in Sencha Touch?

    Google Analytics Use in Sencha Touch?


    Hi,

    Was wondering if anyone has tried to integrate Google Analytics tracking into a Sencha Touch Application? I would like to track things like application signups, etc.

    Thanks,

    Steve

  2. #2
    Sencha - Ext JS Dev Team evant's Avatar
    Join Date
    Apr 2007
    Location
    Sydney, Australia
    Posts
    16,917
    Vote Rating
    630
    evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute

      0  

    Default


    You might want to elaborate, why can't you just include GA like you would on any other page?
    Evan Trimboli
    Sencha Developer
    Twitter - @evantrimboli
    Don't be afraid of the source code!

  3. #3
    Ext User
    Join Date
    Sep 2010
    Posts
    33
    Vote Rating
    0
    Steve Lewis is on a distinguished road

      0  

    Default


    Hi Evan,

    Basically would like to incorporate event tracking into each of the different forms and related events, etc (eg: record an event when someone submits signup form). We already include basic tracking into the page which loads the app... but want to do it on a more incremental and fine grained basis (so we can understand exactly how folks are using the app) . Would be nice to have this done as a part of the toolkit( ideally) ... There are some toolkits/opensource projects for doing this for native iphone apps.

    Steve

  4. #4
    Ext User
    Join Date
    Sep 2010
    Posts
    33
    Vote Rating
    0
    Steve Lewis is on a distinguished road

      0  

    Default


    Did a bit more research on this... turns out its fairly straightforward to incorporate google analytics via java script API calls to their service. Would be useful if that was done automatically as it requires mirroring API calls (and other events) to record events with google.

    For example:

    Ext.Ajax.request({
    url: CONFIG.api_host + "/api/consumer/signup/",
    method: 'POST',
    params: params,
    success: function(msg) {
    Ext.getBody().unmask();
    Ext.getCmp('app').initializeAfterLogin();
    _gaq.push(['_trackPageview', '/api/consumer/signup/']);

  5. #5
    Sencha Premium Member Carlos.D's Avatar
    Join Date
    Nov 2011
    Location
    Luxembourg
    Posts
    38
    Vote Rating
    1
    Carlos.D is on a distinguished road

      0  

    Default


    No news about this topic ? Someone have all ready integrate GA in it's app ?

    Carlos

  6. #6

  7. #7
    Sencha Premium Member Carlos.D's Avatar
    Join Date
    Nov 2011
    Location
    Luxembourg
    Posts
    38
    Vote Rating
    1
    Carlos.D is on a distinguished road

      0  

    Default


    Tks for the reponse. I'm in WebApps context for the moment but it's always usefull to kown that a plugin exist.

Similar Threads

  1. Replies: 10
    Last Post: 20 Jan 2012, 10:10 AM
  2. Google Analytics to track Ajax request made by ExtJS App.
    By msarath in forum Community Discussion
    Replies: 4
    Last Post: 21 Jul 2011, 1:32 PM
  3. Google Analytics Widget for ExtJS (starting)
    By surgi in forum Community Discussion
    Replies: 6
    Last Post: 22 Jul 2009, 4:20 AM
  4. Ext.fc.analytics - Power up your google analytics
    By francodacosta in forum Ext 2.x: User Extensions and Plugins
    Replies: 0
    Last Post: 21 Apr 2009, 6:05 AM

Thread Participants: 3