New Google Analytics code doesn't work in one of asp forums

Discussion in 'C#' started by Cagliostro, Feb 7, 2008.

  1. #1
    Hello.

    I had google analytics working great in an ASP forums for a customer. Last December we switched to the new script google provider. From that point the stats are ZERO, BUT google status check reports working ....

    I have struggled to find the cause but i have failed. If any body could help ?

    The Forum software is MegaBBS from pd9soft.com and the code i use is the following...
    Thanks

    -- Code ---


    ' google analytics


    response.write "<script type=""text/javascript"">"


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

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

    response.write "</script>"

    response.write "<script type=""text/javascript"">"

    response.write "var pageTracker = _gat._getTracker(""UA-xxxxxxxxx-x"");"

    response.write "pageTracker._initData();"

    response.write "pageTracker._trackPageview();"

    response.write "</script>"



    response.write "</body></html>"
     
    Cagliostro, Feb 7, 2008 IP
  2. chapicha

    chapicha Peon

    Messages:
    235
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Create a file to fill google analytics code and use the include command add to your file.

    <!--#include file="googleanalytics.files" -->
     
    chapicha, Feb 7, 2008 IP
  3. bogs

    bogs Active Member

    Messages:
    2,142
    Likes Received:
    16
    Best Answers:
    0
    Trophy Points:
    80
    #3
    bogs, Feb 7, 2008 IP