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
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
AnalyticsPro Google employee  
View profile  
 More options Dec 18 2007, 6:39 pm
From: AnalyticsPro
Date: Tue, 18 Dec 2007 15:39:18 -0800 (PST)
Local: Tues, Dec 18 2007 6:39 pm
Subject: New ga.js not working with ASP or Blogger ?
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
©2009 Google