Pages

18.8.08

hypens better or underscores

For creating Google friendly URLs, I was googling for articles and forums to see if hypens(-) is better than underscroe(_).
I found one resource useful from Matt Cutts about the dashes and underscore. Read his article from http://www.mattcutts.com/blog/dashes-vs-underscores

Also there's a supoprt from Google webmaster as well. Google recommends the use of hyphen than the underscore,

Here's the link:
http://www.google.com/support/webmasters/bin/answer.py?answer=76329&hl=en

7.8.08

Errors in browsers after installing Google analytics Code

I am sure, those of you who use Google Analytics tool must have surely noticed the javascript error in browsers either in IE or Firefox or any,

The Error that is seen is "_gat undefined", And I am sure you must have noticed such error.

But no worries, you can find the answers from the http://groups.google.com/group/analytics-help-troubleshoot
/browse_thread/thread/011ea5c0c1582ea0

If browser is unable to access the javscript source, browser will display error as "_gat is undefined". And such happens due to firewalls, browser's extensions like AdBlock, No Script, filters not allowing the javascript source file to be loaded by browser.

So as a solution, You can see the following example,

<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">
if (typeof(_gat) == 'object') // See this line, here is the use of typeof(_gat)
var pageTracker = _gat._getTracker("UA-abeen0-X"); // replace with your own tracking code
pageTracker._initData();
pageTracker._trackPageview();
</script>

It should solve your problem of seeing error in your browsers.