From the category archives:

Tutorial

Tracking outbound links with jQuery and Analytics

Thanks to @elijahmanor for tweeting this article about updating anchor tags! While I was looking through the code, I found a magical way to use jQuery selectors to identify outbound links on a web page. That got me thinking … wouldn’t it be nice to track outbound clicks through Google Analytics like I’m tracking downloadable [...]

Read the full article → April 8, 2009

Setting focus on first form element with jQuery

When you display a form, it’s always a nice practice to ensure that the first element of the form has focus as soon as the user can interact with the page. For example, if you went to Google’s homepage and had to click in the search box before you could start typing your question, it [...]

Read the full article → April 7, 2009

Twitter status link change

I’m not sure if this is a bug or a permanent change (or if I’ve been doing it wrong since the beginning) but I recently had to change all of the Twitter status links on this site and on Squidoo. If you have links on your site for updating allowing visitors to quickly add Twitter [...]

Read the full article → April 2, 2009

Publishing to Facebook using Facebook Connect

In order to get a frame of reference for this post, you’ll need to read Integrating Facebook Connect using the Thesis theme. That article briefly describes the method for creating a new Facebook Connect application and the files required to set up the basic framework for a Facebook Connect integrated site.
Assuming your site is ready [...]

Read the full article → April 1, 2009

Javascript geolocation using Google AJAX APIs

I always love poking around code.google.com to see what’s new — there’s always more than I can assimilate, but it’s fun nevertheless. Today I found that Google has provided Javascript-based geolocation via the Google AJAX APIs. If you’re not familiar with these APIs, you should read getting started with the Google AJAX APIs.
Originally, the AJAX [...]

Read the full article → March 25, 2009

Tracking events with Google Analytics

If you have any type of web site at all, you’ve heard about Google Analytics by now. It’s the Google solution to analyzing your web traffic. One of the more recent features in Analytics is the ability to track events that occur on your page that aren’t traditional page views. For example, if you have [...]

Read the full article → March 24, 2009