Hi Hardik, Allen is right. It seems that Google Analytics requires a fully qualified domain name.
E.g. look at http://www.slideshare.net/rsdighe/google-analytics-presentation-802989 (slides 13 to 15). Thanks, Stuart Lewis IT Innovations Analyst and Developer Te Tumu Herenga The University of Auckland Library Auckland Mail Centre, Private Bag 92019, Auckland 1142, New Zealand Ph: 64 9 373-7599 x81928 http://www.library.auckland.ac.nz/ On 24/09/2009, at 3:12 PM, Allen Lam wrote: > Hi, > > If you want Google to track your web site, as least you should enable > Google to see it. > No one other than yourself could see your "localhost" web sites. > You should give it a proper domain name or IP and let the world > access it. > > Allen Lam. > HKU Hub Administrator, http://hub.hku.hk > > > Hardik Mishra wrote: >> Hello Sir, >> >> I have asked a question in your blog of google analytics code. >> My question is still awaiting moderator approval. >> >> http://blog.stuartlewis.com/2009/05/29/surfacing-google-analytics-stats-in-dspace/ >> >> *My Question : * >> >> I am running dspace in local. >> >> I have added code in header-default.jsp and in display-item.jsp >> >> I have added code but when i am generating file using dsrun , I am >> getting zero hits. >> >> In google Analytics accout ,it shows Tracking is not installed. >> >> I do have Website URL: http://localhost:8080/jspui >> <http://localhost:8080/dspace> >> >> Does the code works locally ? >> >> Please Help Me out......... >> -- >> Best Regards >> Hardik Mishra >> Software Engineer >> >> http://bit.ly/uJ60P - Join Us on Facebook >> http://www.twitter.com/webinito - Follow us on Twitter >> >> Give a man a fish, and you feed him for a day. Teach a man to catch >> fish and you feed him for a lifetime. >> ------------------------------------------------------------------------ >> >> ------------------------------------------------------------------------------ >> Come build with us! The BlackBerry® Developer Conference in SF, >> CA >> is the only developer event you need to attend this year. Jumpstart >> your >> developing skills, take BlackBerry mobile applications to market >> and stay >> ahead of the curve. Join us from November 9-12, 2009. Register >> now! >> http://p.sf.net/sfu/devconf >> ------------------------------------------------------------------------ >> >> _______________________________________________ >> DSpace-tech mailing list >> DSpace-tech@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/dspace-tech >> > > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry® Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart > your > developing skills, take BlackBerry mobile applications to market and > stay > ahead of the curve. Join us from November 9-12, 2009. Register > now! > http://p.sf.net/sfu/devconf > _______________________________________________ > DSpace-tech mailing list > DSpace-tech@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/dspace-tech ------------------------------------------------------------------------------ Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf _______________________________________________ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech