none
Google Analytics In ASP.Net RRS feed

  • Question

  • Hi friends,

    I have created my Account Number in Google Analytics

    And i also get the script for it

    I have put that script in <head></head> tag

    But i am not able to get the data......

     

    Following is code that i have put ......

    <

     

    script type="text/javascript">

    var

     

    gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");

    //here we got : http://www.

    document.write(unescape(

    "%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));

     

    </script>

     

    <script type="text/javascript">

    try

     

    {

    var

     

    pageTracker = _gat._getTracker("my account number");

    pageTracker._trackPageview();

    alert(pageTracker.toString());

    }

    catch(err) {alert('Error')}</script>

    Sunday, May 9, 2010 8:24 AM