Skip to content

Instantly share code, notes, and snippets.

@phoet
Created April 29, 2010 11:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save phoet/383467 to your computer and use it in GitHub Desktop.
Save phoet/383467 to your computer and use it in GitHub Desktop.
open multiple google analytics accounts
#! /usr/bin/env ruby
[25021834, 18768647].each do |product_id|
url = "https://www.google.com/analytics/reporting/?reset=1&id=#{product_id}&pdr=#{(Time.now - (7 * 60 * 60 * 24)).strftime("%Y%m%d")}-#{Time.now.strftime("%Y%m%d")}"
`open "#{url}"`
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment