×

Discussion Board

Results 1 to 9 of 9
  1. #1
    Registered User
    Join Date
    May 2013
    Posts
    280

    Does google analytics work for tracking s40 apps?

    Does Google analytics work for s40 apps ? Does anybody tried it ? I tried flurry but it is not working so i trying to switch to google analytics.
    Plz guide .

  2. #2
    Regular Contributor
    Join Date
    Dec 2012
    Location
    India
    Posts
    271

    Re: Does google analytics work for tracking s40 apps?

    Yes it works.I use it in my apps.Check this

    https://kenai.com/projects/googleanalyticsme/pages/Home

  3. #3
    Registered User
    Join Date
    May 2013
    Posts
    280

    Re: Does google analytics work for tracking s40 apps?

    thanks ....

  4. #4
    Registered User
    Join Date
    Nov 2013
    Posts
    1

    Re: Does google analytics work for tracking s40 apps?

    Quote Originally Posted by Manpreet_Singh View Post
    Does Google analytics work for s40 apps ? Does anybody tried it ? I tried flurry but it is not working so i trying to switch to google analytics.
    Plz guide .

    Ya having the same problem here. Wouldn't mind a guide if there is one.

  5. #5
    Registered User
    Join Date
    Nov 2013
    Posts
    1

    Re: Does google analytics work for tracking s40 apps?

    Quote Originally Posted by Manpreet_Singh View Post
    Does Google analytics work for s40 apps ? Does anybody tried it ? I tried flurry but it is not working so i trying to switch to google analytics.
    Plz guide .
    I've tried it to no success on my end too.

    Quote Originally Posted by arunkam View Post
    Yes it works.I use it in my apps.Check this

    https://kenai.com/projects/googleanalyticsme/pages/Home
    Mind putting a mini guide to how you set it up?

  6. #6
    Regular Contributor
    Join Date
    Dec 2012
    Location
    India
    Posts
    271

    Re: Does google analytics work for tracking s40 apps?

    Sure.

    Let us create a new property to track in Google Analytics.Open up analytics.google.com.Goto Admin.Goto property settings and create a new property there.Make sure that you pretend like you are tracking a website and not an app.The App functionality will not work for J2ME. Give the address of your own website or blog if you have any.It doesnt matter what site you give.

    Once you create a property, you will now get a tracking ID something like this : UA-3*****4-1

    Now Download the latest Google Analytics JAR from here

    https://kenai.com/projects/googleana...2.1-javame.zip

    Add this to your project.I am now attaching a sample code below

    Code:
     Tracker tc = Tracker.getInstance(m, id);// m is the MIDlet instance and id is the Tracking ID
            if (!Storage.getInstance().exists("first_time"))
            {
    
                tc.addToQueue(new Event("New User", "Opening App", m.getAppProperty("MIDlet-Name"), null));
                Storage.getInstance().writeObject("first_time", "new_user");
            } else
            {
                tc.addToQueue(new Event("Old User", "Opening App", m.getAppProperty("MIDlet-Name"), null));
            }
    
            // Adding a Page View here just as an example
            tc.addToQueue(new PageView(m.getAppProperty("MIDlet-Name"), "/mainPage"));
    
            tc.flush(true);
    This sample code will generate an event called New User whenever a user uses an app for the first time.Subsequent uses will generate an event called Old User. The Page view instance is just an example.


    The sample code makes use of LWUIT-IO package which has the Storage class.It is only used to check whether we are running the app for the first time or not. Kindly note how I am making use of events and page views alone for understanding purpose.

    I will put this as a Wiki article pretty soon.

    Regards,
    Arun.

  7. #7
    Registered User
    Join Date
    May 2013
    Posts
    280

    Re: Does google analytics work for tracking s40 apps?

    Hi arunkam,

    we need to implement some permissions for google analytics too while signing? If yes what are the permissions for it?

  8. #8
    Regular Contributor
    Join Date
    Dec 2012
    Location
    India
    Posts
    271

    Re: Does google analytics work for tracking s40 apps?

    I have replied for this question in another post of yours.

  9. #9
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,740

    Re: Does google analytics work for tracking s40 apps?

    (The permission-related discussion continues in http://developer.nokia.com/community...d-in-QA-review)

Similar Threads

  1. Google analytics
    By Elgiz in forum Nokia Asha Web Apps
    Replies: 2
    Last Post: 2013-01-02, 11:38
  2. Replies: 1
    Last Post: 2012-07-05, 09:06
  3. Google Analytics in S40 web apps
    By abhispandey in forum Nokia Asha Web Apps
    Replies: 1
    Last Post: 2011-10-17, 12:51
  4. Google Analytics for Mobile and WRT
    By geniusboywonder in forum Symbian
    Replies: 15
    Last Post: 2011-02-02, 13:21
  5. Google Maps API - Map download does not work
    By snowisfree in forum Mobile Java General
    Replies: 4
    Last Post: 2009-03-12, 12:10

Posting Permissions

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