Google Archives

Google-Style Element Fading Using MooTools or jQuery

Published by David Walsh on Monday, February 1, 201037 Comments

Google Homepage

Google recently introduced an interesting effect to their homepage: the top left and top right navigation items don’t display until you move your mouse or leave the search term box. Why? I can only speculate that they want their homepage as simple as possible; after all, the search box is given focus immediately and at least half of their users probably just type their term and hit enter — no need for more clutter. Here’s how you can implement a similar system with MooTools or jQuery.

Async Google Analytics

Published by David Walsh on Friday, January 22, 201023 Comments

It seems like every website these days uses Google Analytics. And why not? It’s an outstanding tool that gives you any and every statistic you could ever want. The problem with Google Analytics is that it’s been, well, slow loading at times. That’s why I was so pumped when I saw Google was releasing an async version of their script.

Dynamically Create Charts Using jQuery Flot and Google Analytics

Published by David Walsh on Thursday, October 22, 200924 Comments

jQuery Flot

Earlier in the week I published a popular article titled Dynamically Create Charts Using MooTools MilkChart and Google Analytics. My post showed you how to use MooTools MilkChart and a splash of PHP to create beautiful charts of Google Analytics data. I was interested in seeing what jQuery had to offer in the charting department. jQuery Flot is what I found.

Remotely Download Google AJAX Libraries Using PHP

Published by David Walsh on Wednesday, September 30, 20097 Comments

I don’t know how to use all of the javascript libraries but perusing their code is interesting. If I’m looking to code something I’ll look at how each of the other libraries accomplishes the task. The problem is that you need to go out and download each one. And of course they’re all on different development schedules so you’d also need to make sure to grab the latest version of the library. Instead of manually accomplishing that task, I’ve chosen create a script that does all of that for me.

Retrieve Google Analytics Visits and PageViews with PHP

Published by David Walsh on Tuesday, September 29, 200961 Comments

Google Analytics is an outstanding website analytics tool that gives you way more information about your website than you probably need. Better to get more than you want than not enough, right? Anyways I check my website statistics more often than I should and it ends up taking a few minutes to get logged in, select the right site, select the current day, etc. I found a great Google Analytics PHP API that allows me to get just the statistics I’m looking for.

The PHP Library

The PHP class I found, analytics, can be downloaded at http://www.swis.nl/ga/. The site also gives a few solid examples.





© David Walsh 2007-2010. Contact David Walsh. Powered by the remarkable MooTools javascript framework.