Home Top Projects Tutorials Articles Submit Project
 
  • .NET Frameworks
  • Java Frameworks
  • PHP Frameworks
  • Ruby Frameworks
  • Other Frameworks
  • Cool AJAX sites
  • Ajax Resources
  • Ajax Tools
  • JavaScript frameworks
 
     
    • Django Messaging for AJAX Calls Using Jquery
    • Pixastic: JavaScript Image Manipulation Library
    • Consuming Web Services using AJAX and ASP.NET 3.5
    • Beginning AJAX with Rails 2.0
    • Populating HTML tables using PageMethods/AJAX
    • How To Use Scriptsharp
    • Calling Web Service Methods Using ASP.NET AJAX
    • HTML5 Live DOM Validator
    • Easy Ajax in symfony
    • Fun with SVG and CSS Animations
    Home » Tutorials » Google Analytics: Tracking AJAX and Flash

    Google Analytics: Tracking AJAX and Flash

    Google Analytics has a new feature that Ajax & Flash developers will find extremely useful . According to the new article, is now possible to track page views in Ajax & Flash applications. And, it is simple.


    http_request.onreadystatechange = sendAlert;
    http_request.open(’GET’, url, true);
    http_request.send(null);
    }

    function sendAlert() {
    if (http_request.readyState == 4) {
    if (http_request.status == 200) {
    alert(http_request.responseText);
    pageTracker._trackPageview("/pagefilename1" ); }
    else {
    alert(’Error.’);
    }
    }
    }

    An important usage tip about this feature is that, Google Analytics codes are normally installed just before the /body tag. When calling _trackPageview function, you’ll need to use it after the Analytics codes are included. Which means installing the Analytics codes just after the tag is a guaranteed solution.

    source: pandejo.blogspot

    Copyrights Reserved AjaxProjects.com 2006-2013, Powered by Enozom - Mobile Development Company -Privacy Policy