Gelmiş geçmiş en büyük porno sitemiz olan 2pe de her zaman en kaliteli pornoları sunmayı hedefledik. Diğer video sitemiz olan vuam da ise hd porno ağırlıklı çalışmalara başladık.

  1. #1
    Ext User
    Join Date
    Oct 2007
    Posts
    83
    Vote Rating
    0
    robw is on a distinguished road

      0  

    Question Tracking usage of an AIR app

    Tracking usage of an AIR app


    Hi

    Has anyone got experience tracking usage of an AIR app? Ideally I'd like to include Google Analytics, but I'm finding it hard to get any useful info on doing this or alternative techniques.

    Any guidance much appreciated!

    Thanks
    Rob

  2. #2
    Ext User
    Join Date
    Oct 2007
    Posts
    83
    Vote Rating
    0
    robw is on a distinguished road

      0  

    Default


    I've got Google Analytics working now. Solution is to put a hidden iframe in the AIR app which serves a page from my web server. That page has the Google Analytics code on it and calls trackPageView with whatever is on the querystring:

    PHP Code:
    <script type="text/javascript" src="http://www.google-analytics.com/ga.js"></script>
    <script type="text/javascript">
        window.onload = function() {
            var pageTracker = _gat._getTracker("SITE CODE");
            var s = document.location.search;
            if (s.length > 1) {
                s = s.substring(1);
                pageTracker._trackPageview(s);
            }
        }
    </script> 
    Then in my AIR app I have a function that can log any action by reloading the iframe:
    PHP Code:
    function track(action){
          
    document.getElementById('googleFrame').src 'http://my.domain/ga.html?' action;