
Security News
Oxlint Introduces Type-Aware Linting Preview
Oxlint’s new preview brings type-aware linting powered by typescript-go, combining advanced TypeScript rules with native-speed performance.
= ranalytics -- Ruby Google Analytics interface, inspired by Burnalytics
Author:: Mirek Rusin
Copyright (c) 2007 Mirek Rusin, parts of code stolen from Burnalitics
You can redistribute it and/or modify it under the same terms as Ruby.
= ranalytics -- Ruby Google Analytics interface, inspired by Burnalytics
== Examples
To iterate all profiles (websites) inside your google analytics account
require 'ranalytics' analytics = Analytics.new 'YOURLOGIN@gmail.com', 'YOURPASSWORD' analytics.profiles.each do |profile| puts profile.name end
To retrieve hits from the first profile
require 'ranalytics'
analytics = Analytics.new 'YOURLOGIN@gmail.com', 'YOURPASSWORD'
profile = analytics.profiles.first
puts profile.visits(Date.today) # prints visits for specific day (Date instance)
puts profile.visits('20070101-20070131) # prints visits for the range (String)
Or you can use predefined Symbols:
puts profile.visits(:yesterday)
puts profile.visits(:last_7_days)
puts profile.visits(:last_week)
To get stats for each day, you can:
require 'ranalytics' analytics = Analytics.new 'YOURLOGIN@gmail.com', 'YOURPASSWORD' profile = analytics.profiles.first for date in Date.parse('2007-01-01')..Date.today puts profile.visits(date) end
== Download
The latest version of ranalytics can be found at
Documentation can be found at
== Installation
The preferred method of installing ranalytics is through its GEM file. You'll need to have RubyGems[http://rubygems.rubyforge.org/wiki/wiki.pl] installed for that, though. If you have it, then use:
% [sudo] gem install ranalytics.gem
== License
ranalytics is released under the LGPL license.
== Support
The ranalytics homepage is http://mirekrusin.com/ruby/ranalytics
For other information, feel free to ask on the ruby-talk mailing list (which is mirrored to comp.lang.ruby) or contact mailto:ruby@mirekrusin.com
FAQs
Unknown package
We found that ranalytics demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oxlint’s new preview brings type-aware linting powered by typescript-go, combining advanced TypeScript rules with native-speed performance.
Security News
A new site reviews software projects to reveal if they’re truly FOSS, making complex licensing and distribution models easy to understand.
Security News
Astral unveils pyx, a Python-native package registry in beta, designed to speed installs, enhance security, and integrate deeply with uv.