×

Discussion Board

Page 1 of 2 12 LastLast
Results 1 to 15 of 16
  1. #1
    Registered User
    Join Date
    Sep 2009
    Posts
    4

    Question Google Analytics for Mobile and WRT

    Google have just released Analytics for Mobile

    It is currently only available for phones that handle javascript - like iPhone and Android. Google have only released it for these SDKs so far.

    Not being a WRT developer, I have a number of questions:

    - Given that one of WRT's components is javascript, would it not be possible for it also to run on the Nokia WRT-devices?
    - If so, has anybody tried to get it to work, even hacking around without the approved SDK?

    - If not, and given that WRT is html, CSS and javascript compliant, would vanilla Google Analytics work?
    - Has anybody tried this and are there any issues to watch out for?

    I would really like to get some app feedback via an analytics tool before I deploy my first app.

    Many thanks

  2. #2
    Registered User
    Join Date
    Sep 2009
    Posts
    4

    Re: Google Analytics for Mobile and WRT

    I have had limited success with other regular Google products and WRT.

    - Google Ads for high-end devices did not work ;-(
    - Google Ads for Maps as points on the map worked fine ;-)
    - Google Ads for Maps as an "Adunit" overlay displayed the ovelay but not render any ads ;-|

    Any guidance or help you can share would be greatly appreciated.

  3. #3
    Regular Contributor
    Join Date
    Apr 2003
    Location
    Akron Ohio USA
    Posts
    229

    Re: Google Analytics for Mobile and WRT

    I guess it all depends upon what you are trying to do with analytics. if your goal is to track usage across HTML pages in the WRT app then you wont be able to do this very well with WRT.

    Unlike a web site, A WRT application is not a collection of distinct HTML pages. There is only one HTML page that acts like a canvas for dynamically building screens using javascript manipulation of DOM. If you navigate to a different HTML page then the WRT environment disables most of the WRT api. Since the typical way of implementing analytics is to include code on each page, this obviously wont work in the WRT context.

    You could have google analytics code run once the application starts. You might be able to implement it differently than simply putting the code on each page like a web page. Maybe you can build a function that calls to google on each screen display.

    Of course end users of your application might not like it if they find out you are monitoring how they are using the application. People may view applications as a more intimate and personal experience than viewing a typical web page.

  4. #4
    Registered User
    Join Date
    Mar 2009
    Posts
    1

    Re: Google Analytics for Mobile and WRT

    I am also experimenting with WRT and Google Analytics , but with very limited results so far. I have WRT widget , where I have main.html containing JQuery Tabs which will be populated with data from web server.
    I would need to get data of overall pageviews of the index.html + possible pageviews of each of the category on the tabs.

    Google documentation says, that Mobile Analytics can do tracking for two basic types of user interaction:
    # Pageviews.
    # Events.

    Now I wonder is it possible to track pagewiews and events similar manner also in devices running Nokia WRT? I am currently using Google Analytics jQuery Plugin (http://plugins.jquery.com/project/ga) and I hope to get further with pageTracker._trackEvent(category, action, opt_label, opt_value) method, If anyone has succeeded with this, or with any other way pls advice.

    Also, the reason I want to use Google Anlytics is that it does not give you pageviews of individual devices, but generates data of overall usage patterns of your site/application. I need to set up small scale pilot user case for the application running Nokia WRT .
    Last edited by pekollik; 2010-02-20 at 15:25.

  5. #5
    Nokia Developer Champion
    Join Date
    Nov 2007
    Location
    Rome, Italy
    Posts
    2,405

    Re: Google Analytics for Mobile and WRT

    A Google Analytics JavaScript library for WRT widgets is now available here:

    https://projects.forum.nokia.com/wrtgoogleanalytics

    Pit

  6. #6
    Registered User
    Join Date
    Jan 2006
    Location
    Argentina
    Posts
    24

    Re: Google Analytics for Mobile and WRT

    Hi all

    I needed to track pageviews rather than events, so I took Jappit's library and enhanced it.

    So now the library supports pageview tracking as well!.

    Jappit, I would like to contribute the source code to the project - let me know how.

    Regards
    Mario
    Last edited by mariozorz; 2010-11-04 at 14:30.

  7. #7
    Nokia Developer Champion
    Join Date
    Nov 2007
    Location
    Rome, Italy
    Posts
    2,405

    Re: Google Analytics for Mobile and WRT

    Hi Mario,

    thank you for your efforts! I've just added you to the project, feel free to add your own contributions.

    Pit

  8. #8
    Registered User
    Join Date
    Jan 2006
    Location
    Argentina
    Posts
    24

    Re: Google Analytics for Mobile and WRT

    Great Jappit,

    Contributions are committed to the SVN repo and wiki has been edited accordingly at https://projects.forum.nokia.com/wrtgoogleanalytics

    Enjoy
    Cheers
    Mario

  9. #9
    Regular Contributor
    Join Date
    May 2009
    Location
    sydney
    Posts
    117

    Re: Google Analytics for Mobile and WRT

    This is really awesome!
    It's really good to have the pageview trackings, by using EventTrackings developers need to "PLAN" about the trackings events before they actually start integrations.
    this really make the tracking life a bit easier!!
    Excellent work Mariozorz!!!!
    Nokia is back!

  10. #10
    Registered User
    Join Date
    Jan 2006
    Location
    Argentina
    Posts
    24

    Re: Google Analytics for Mobile and WRT

    Thanks Wenz!
    Actually jappit & co did the hard part, I only built some more stuff on the previous work they've done.
    Let us know how it goes in your projects
    Regards
    Mario

  11. #11
    Registered User
    Join Date
    Apr 2010
    Posts
    4

    Re: Google Analytics for Mobile and WRT

    Hi Mario,

    Thanks for your contribution to this project. Now, I see that you've removed callback method, was that intentionally or by mistake? It's an useful feature and it should make it's way back into the code.

  12. #12
    Registered User
    Join Date
    Jan 2006
    Location
    Argentina
    Posts
    24

    Re: Google Analytics for Mobile and WRT

    Quote Originally Posted by srstanic View Post
    Hi Mario,

    Thanks for your contribution to this project. Now, I see that you've removed callback method, was that intentionally or by mistake? It's an useful feature and it should make it's way back into the code.

    Hi strstanic

    I've checked the diff https://projects.forum.nokia.com/wrt...leAnalytics.js to see if I took code out by mistake but as you can see it's all added code, nothing was removed

    The callback methods are there; if you check there are 2 methods called trackEventHandler and trackPageviewHandler that get called once the XMLHttprequest send method finishes.

    Did you mean something different?

    Regards
    Mario

  13. #13
    Registered User
    Join Date
    Apr 2010
    Posts
    4

    Re: Google Analytics for Mobile and WRT

    Callback methods are still there, but they cannot be overriden with the constructor's last argument like before. Local variable 'callback' is not present anymore.

  14. #14
    Registered User
    Join Date
    Apr 2010
    Posts
    4

    Re: Google Analytics for Mobile and WRT

    Ups, it might be that I've added that change and it was never a part of the code published here Let me know how I can contribute if you are interested.

  15. #15
    Registered User
    Join Date
    Apr 2010
    Posts
    4

    Re: Google Analytics for Mobile and WRT

    Btw. there is a bug in line 141, one '+' character is missing.

Page 1 of 2 12 LastLast

Similar Threads

  1. Nokia WRT 2.1.1 install conflict with Google Plugin for Eclipse 3.5
    By spanishgringo in forum Symbian Web Runtime
    Replies: 2
    Last Post: 2010-04-21, 09:04
  2. Replies: 7
    Last Post: 2010-02-13, 22:46
  3. WebRunTime (WRT) do NOT need signing and can package Flash content
    By jimgilmour1 in forum [Closed] Publishing to Nokia Store
    Replies: 5
    Last Post: 2009-05-04, 09:05
  4. What is WRT 1.0, 1.1, 1.2 versions?
    By naroori in forum Symbian Web Runtime
    Replies: 2
    Last Post: 2008-12-24, 20:07
  5. Forum Nokia WRT Webinar Q&A (In Portuguese)
    By bill.volpe in forum Symbian Web Runtime
    Replies: 0
    Last Post: 2008-06-13, 16:35

Posting Permissions

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