Google Groups Home
Help | Sign in
Message from discussion New ga.js not working with ASP or Blogger ?
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
Andrew Girdwood  
View profile
 More options Dec 18 2007, 8:30 pm
From: Andrew Girdwood
Date: Tue, 18 Dec 2007 17:30:04 -0800 (PST)
Local: Tues, Dec 18 2007 8:30 pm
Subject: Re: New ga.js not working with ASP or Blogger ?
You need to make sure you close the </script> tag after the last
pageTracker call too.

<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://
ssl." : "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">
var pageTracker = _gat._getTracker("UA-xxxx-xx");
pageTracker._initData();
pageTracker._trackPageview();
</script>

On Dec 18, 11:39 pm, AnalyticsPro wrote:

> If you're having issues installing the ga.js on either an ASP site or
> Blogger, please use the following code instead:

> <script type="text/javascript">
> var gaJsHost = (("https:" == document.location.protocol) ? "https://
> ssl." : "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">
> var pageTracker = _gat._getTracker("UA-xxxx-xx");
> pageTracker._initData();
> pageTracker._trackPageview();

> (replace xxxx-xx with your Google Analytics account number)

> The new code passes W3c XHTML 1.0 strict compliance verification,
> mitigates Nested Script errors on ASP on IIS, and installs on Blogger
> and will be the default code provided within the Google Analytics
> interface.

> Thanks to everyone who both reported the issue and suggested fixes!


    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2008 Google