Google Analytics Event Tracking Overview

September 24th, 2009 by

At our last monthly technical luncheon I gave a presentation on Google Analytics Event Tracking.

Event Tracking in Google Analytics lets the web developer track AJAX requests and by extension Flash events too. AJAX requests don’t cause page views but as more and more web applications use AJAX it’s important to track the AJAX requests in addition to the standard page requests. Here are some examples of things you can track with GA Event Tracking that you typically wouldn’t be able to track with the standard Google Analytics Javascript embed:

Read the rest of this entry »

Timecop 0.3.0 Released

September 20th, 2009 by

Timecop 0.3.0 has just been released. To install simply run: gem install timecop.

Timecop is a RubyGem providing “time travel” and “time freezing” capabilities, making it dead simple to test time-dependent code. It provides a unified method to mock Time.now, Date.today, and DateTime.now in a single call.

Documentation is on RubyForge. The source code is hosted at GitHub.

Updates include:

API

  • Completely remove Timecop#unset_all (deprecated by Timecop#return in 0.2.0)
  • Return Time.now from #freeze, #travel and #return — code contributed by Keith Bennett (keithrbennett)

Maintenance

  • Fix bug that left Time#mock_time set in some instances
  • Upped build dependency to jeweler ~> 1.2.1
  • Don’t pollute top-level namespace with classes/constants

Documentation

  • Clearer examples in the README, better description in the gemspec
  • Improve RDoc