Google Analytics and JavaScript

Last post 06-01-2009 3:43 AM by Vince Xu - MSFT. 1 replies.

Sort Posts:

  • Google Analytics and JavaScript

    05-28-2009, 10:44 AM
    • Member
      53 point Member
    • DavidLee
    • Member since 10-04-2006, 11:13 PM
    • Edmonton, Canada
    • Posts 29

    Hi,

    I've created my first site incorporating ajax, and have a couple of questions.  (noob with Ajax, so be gentle :)

    It seems that "normal" javascript doesn't work - is that because of Ajax?  I've tried incorporating some of our normal javascript on some pages - we use it on many sites and it works.  For some reason not on these pages, and I wondered if it was because of Ajax.

    If so, would that adversely effect our Google Analytics javascript that goes at the bottom of each page?

    Thanks

    David

    Filed under: , ,
  • Re: Google Analytics and JavaScript

    06-01-2009, 3:43 AM
    Answer

    Hi,

    Which Ajax Framework you used? Ajax will register some JavaScript the client. In some scenario, it will mix up the javaScript code you made on client. But if you can write the JavaScript clearly, it will be fine together. For example, sometimes we are accustomed to omit the semicolon after the last code line, that will cause the script code mixed up by the script codes which are regisered.


    Vince Xu
    Microsoft Online Community Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.
Page 1 of 1 (2 items)
Microsoft Communities