Embed_google is a project mainly written in Ruby, it's free.
Ruby gem for embedding various Google services (e.g. analytics tracking) in Rack apps