How to track devices in Google Universal Analytics from Air mobile application?

Hello,
I'm using Google Measurement Protocol to collect analytics data from mobile Air application
https://developers.google.com/analytics/devguides/collection/protocol/v1/
I found that Air application running on iPad 3 not detecting device model in google analytics reports.
I guess it's because Air environment sending incomplete user-agent string.
This is what it sending:
Mozilla/5.0 (iOS; U; ru) AppleWebKit/533.19.4 (KHTML, like Gecko) AdobeAIR/3.1
And this user-agent string sending by Safari on ipad (for comparison):
Mozilla/5.0 (iPad; CPU OS 6_1_3 like Mac OS X) AppleWebKit/536.26 (KHTML, like Gecko) Version/6.0 Mobile/10B329 Safari/8536.25
So Air application knows much less than Safari.
My question is: How to create custom user-agent string in Air application so it contains enough data for google analytics to detect device model?
Is there any solution that will work on most ios and android devices?

I don't know if you managed to make it work, but it kind of worked for me, I did this:
var _urlReq:URLRequest = new URLRequest('http://www.google-analytics.com/collect');
                              var uuid:String = 'my-generated-uuid';
                              _urlReq.method = URLRequestMethod.POST;
                              var scName:String = '&v=1&tid='+myTrackingCode+'&cid='+uuid+'&an='+myAppName+'&av=1.0&t=appview&cd='+myScreenName;
                              _urlReq.data = scName;
                              var urlLoader: URLLoader = new URLLoader();
                              urlLoader.load(_urlReq);
I say "it kind of worked" because I haven't been able to send custom events yet, butI'm on the right track.

Similar Messages

  • How do i Hyperlink to a web page from a java application?

    How do i Hyperlink to a web page from a java application using internet explorer as my default web browser?

    It's very simple.You can start any Application with the class Runtime. The command is an array consisting of the path of .exe and the file to be open.
    String [] cmd={path of IE+Filename.exe,"URL of your website"}
    try
    Runtime.getRuntime().exec(cmd);
    catch (Exception e)
    System.err.println(e.toString());
    }

  • How to pass an image from the mobile application to the Adobe Media Server?

    The image is taken as photo from the CameraUI in the Client Side(AIR Mobile Application) and saved as a .jpg file in the mobile. I passed the image byte array values from the client to the server. How to convert that byte array to a file in the Adobe Media server?

    This is very similar to the problem here:
    http://forums.adobe.com/thread/655314
    processByteArray = function(byteArrayAsPlainObject){
         // byteArrayAsPlainObject is an object serialized from a ByteArray but without functions
         // we need to get a ByteArray that we can call functions on
         var usableByteArray = new ByteArray();
         byteArrayAsPlainObject.position = 0; // make sure we start from the beginning
         ByteArray.prototype.readBytes.call(byteArrayAsPlainObject, usableByteArray);
         // now usableByteArray contains what was in the original argument, but we can actually use it on the server side

  • Help me!    How to use it as a web service from third party application?

    After using JDeveloper to develop BSSV object e.g. JP550010, how to use it as a web service from third party application?
    TKS!

    Obviously the OP is working on a project for the Bead Society of Southeastern Virginia http://www.bssv.org. Oh, wait, maybe he's researching the Blueberry Shoestring Plant Virus http://abbreviations.yourdictionary.com/bssv
    :D
    John

  • How can I get my Aperture library back from the Photos application?

    As stated above, How can I get my Aperture library back from the Photos application?  I'm not a fan of Photos right now and haven't used iPhoto in years, so that wasn't a loss... I didn't realize when I gave Photo's access to my Aperture library, I was going to lose it...
    I want to get it back, any suggestions?
    Thanks again!
    MacTeacherMN

    what means ..."Once you open the Aperture library back into Aperture..."? What do I need to "klick" in order to getting back my old Aperture Project structure....

  • How to Show ActionScript Graphics based Spinner on Flex or mobile application ?

    How to Show ActionScript Graphics based Spinner on Flex or mobile application
    Solution:

    Check out the BusyIndicator component introduced in Flex 4.5:
    <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
                   xmlns:s="library://ns.adobe.com/flex/spark">
        <s:BusyIndicator />
    </s:Application>

  • How to use ScaleNine themes to skin an Adobe Air Mobile App

    Hi,
    I'm rather new to Adobe Air development But I really like it! Now that I've created my app I would like to skin it. I've found ScaleNine (http://www.scalenine.com/gallery/gallery-1.php) which has ready made cool skins for Flex and Air. I downloaded the samples and they compile and work beautifully. HOWEVER: I can't seem to be able to use them to skin my Air mobile app.
    Can anyone post an example ViewNavigatorApplication themed with one of the themes there? this one (http://www.scalenine.com/themes/blend/Blend.html) looks as though someone tailored it to my app :-)
    Thanks a lot!
    Avi

    I don't know how your application is structured, but if you can split sections off into separate SWFs(plain AS3 document) then you could host those section SWFs online and require the user to download them on first run.
    You could use the FileReference object to download the SWFs, save them to the File.applicationStorageDirectory, and then display/load them up with the Loader object when needed from the app storage directory. You would possibly need to check to see if the files are present at every boot of the app though as a user could "Clear Data" or "Clear Cache" of the app in the Settings of their device and one or both of those could/would delete the downloaded files.
    FileReference - Adobe ActionScript® 3 (AS3 ) API Reference

  • How do you profile AIR mobile applications?

    I'm used to using FlashBuilder to profile an application, take memory snapshots, and find lingering objects from memory leaks.  With AIR mobile, the best I can do is run Adobe Scout to verify that my application has a memory leak.  The list of all ActionScript objects is massive- it's not useful for tracking down a leak.  Is there a way to use the standard FlashBuilder profiler, or another way to track down a memory leak using Adobe Scout?
    Thanks!

    Yes, I've enabled telemetry.  I use object pooling and nulling, but not in the instance that's causing the exception.  It's a simple block that involves a few Parsley commands and an ANE.  I really need the profiler to figure out what part is leaking, and I have to test it on a device because of the ANE.

  • How to call pdf forms developed in ABAP from WD Java application?

    Hi
    I have a web dynpro ABAP application that that is responsible for generating PDF forms for all other applications (WD ABAP and WD Java).
    How can I call the pdf forms generated by the WD ABAP application from WD Java application in a separate window?
    These forms are to be called on click of a "Print" button. Also, these forms are non interactive.
    Kindly let me know if you need any other information.
    Regards
    Vineet Vikram
    Edited by: vineet vikram on Jun 24, 2009 7:28 AM

    in addtion to Nikhil's response. you can write following code on action of print button:
        IWDWindow window = wdComponentAPI.
            getWindowManager().createExternalWindow(
                  "<ABAP Application URL>",
                  "<Title for window>",
                  false);
       window.open();
    to Close the application, you can use the window close or u can fire an event to close current window.
    Abhinav

  • How do I get a profile / .per file from a EPMA application this is for HFM

    I want to copy an EPMA application into another environment but outside of EPMA. I can get the metadata, Security and Rules Extracts. How do i get the .per periods file to set up the classic application.

    Hi Raul,
    Thanks for the help. What I was trying to do is extract one from an existing application. But I guess it is easy enopugh to set one up from scratch. I wasnt sure of the start period of the app that i wanted duplicated, but opening it in the classic app client, and dropping down on the year dimension gives us the info.
    Thanks for your help.
    Vivek

  • How do I stop the Google Search Box from opening and scrolling down when I use the PGDN key?

    On My Home Page (Earthlink) - when I use the PGDN (or the down arrow) key to navigate - the google search box opens and scrolls down through recent searches. I really want to just scroll down the home page as I did in the past.
    How do I fix?

    Hello,
    '''Try Firefox Safe Mode''' to see if the problem goes away. [[Troubleshoot Firefox issues using Safe Mode|Firefox Safe Mode]] is a troubleshooting mode that turns off some settings and disables most add-ons (extensions and themes).
    ''(If you're using an added theme, switch to the Default theme.)''
    If Firefox is open, you can restart in Firefox Safe Mode from the Help menu by clicking on the '''Restart with Add-ons Disabled...''' menu item:<br>
    [[Image:FirefoxSafeMode|width=520]]<br><br>
    If Firefox is not running, you can start Firefox in Safe Mode as follows:
    * On Windows: Hold the '''Shift''' key when you open the Firefox desktop or Start menu shortcut.
    * On Mac: Hold the '''option''' key while starting Firefox.
    * On Linux: Quit Firefox, go to your Terminal and run ''firefox -safe-mode'' <br>(you may need to specify the Firefox installation path e.g. /usr/lib/firefox)
    ''Once you get the pop-up, just select "'Start in Safe Mode"''
    [[Image:Safe Mode Fx 15 - Win]]
    '''''If the issue is not present in Firefox Safe Mode''''', your problem is probably caused by an extension, and you need to figure out which one. Please follow the [[Troubleshoot extensions, themes and hardware acceleration issues to solve common Firefox problems]] article to find the cause.
    ''To exit Firefox Safe Mode, just close Firefox and wait a few seconds before opening Firefox for normal use again.''
    When you figure out what's causing your issues, please let us know. It might help others with the same problem.
    Thank you.

  • How to make iChat receive google.talk chat from a web page?

    I have set up a google talk account and can login in to via iChat 5.0 on Snow Leopard to that Jabber account. I have placed a google talk applet on my web page for people to chat to me for customer service reasons. But the chat only appears if I have my iGoogle web page open and not in my iChat window, which is what I would prefer.
    The web page with the google chat link enabled is at www.federatefilms.com
    Thanks
    Kevin

    If this a Text Based I do not completely recognise the iFrame link you have.
    The AIM Method links to both On and Offline Statuses as you can see in the Show Source of this page for my link top and bottom of the Page here http://www.ralphjohns.co.uk/ContactTesters.html
    As in
    <a href="aim:goim?screenname=ralphjohnsr&message=Hi!,+I+came+from+your+website,ralphjohnsuk."><img align="right" src="http://big.oscar.aol.com/ralphjohnsr?onurl=http://www.ralphjohns.co.uk//images/RalphOn.gif&offurl=http://www.ralphjohns.co.uk//images/RalphOff.gif" alt="Webmaster iChat Online Status Indicator" border="0"></a>
    <a href="aim:goim?screenname=ralphjohnsr will launch your/their aim based App
    &message=Hi!,+I+came+from+your+website,ralphjohnsuk."> Adds message to be sent to me
    <img align="right" src="http://big.oscar.aol.com/ralphjohnsr?onurl=http://www.ralphjohns.co.uk//images/RalphOn.gif&offurl=http://www.ralphjohns.co.uk//images/RalphOff.gif" On and Off line pics after querrying the AIM server about my Status
    alt="Webmaster iChat Online Status Indicator" border="0"></a> alt and border style and closing tags
    The Method for querrying the GoogleTalk server may be different.
    9:42 PM Tuesday; November 3, 2009
    Please, if posting Logs, do not post any Log info after the line "Binary Images for iChat"
    Message was edited by: Ralph Johns (UK)
    Removed Align Right tag
    Message was edited by: Ralph Johns (UK)
    Bolded Comments in repeat that explains the bits

  • How can I import my Google groups list from IE to FF

    In Internet Explorer I have tabs to Google groups. I would like to export these into Firefox

    go to 'system prefernces > .Mac > advanced > reset sync data'
    Then choose to replace everything on your compu with .Mac data. (Back up before you begin! or is there really nothing to back up, then don't bother of course)

  • How to get open calender of specific date from adf-mobile

    HI,
    I have 2 variablesin my bean class. 1st contains the date and 2nd contains the event name.
    in my poc when user click on a commandLink it opens the calender with that date selected and with an event which is in our second variable.
    Kindly help me in this, how can i do this with ADF-Moble on AMX or HTML page.
    Thanks and Regards,

    Hi,
    Please try this.
    PARAMETERS: P_START LIKE SY-DATUM,
                P_END   LIKE SY-DATUM.
    DATA: DAYS    TYPE I,
          WEEKDAY LIKE DTRESR-WEEKDAY.
    DAYS = P_END - P_START.
    DO DAYS TIMES.
      CALL FUNCTION 'DATE_TO_DAY'
        EXPORTING
          DATE    = P_START
        IMPORTING
          WEEKDAY = WEEKDAY.
      IF WEEKDAY = 'Sat.'.
        WRITE: / P_START.
      ENDIF.
      P_START = P_START + 1.
    ENDDO.
    Regards,
    Ferry Lianto

  • How to display local HTML5 web page in flash builder mobile application?

    We have one single html5 web page that includes script tag to include a set of resources(java script).
    Currently we have tried using web view, htmlloader and IFrame, but none of the approaches worked as the page is included in the assets folder itself of the application, and we need to run it on the mobile device(not the browser).

    If all you are doing is loading an HTML5 web page I would look at using PhoneGap instead:
    http://phonegap.com/
    PhoneGap was bought by Adobe.

Maybe you are looking for