Vanity v1.3.0 Release Notes
Release Date: 2010-03-01 // about 14 years ago-
๐ This release adds support for Google Analytics, AdWords and forking servers (Passenger, Unicorn).
๐ To view Google Analytics metrics from within Vanity, first make sure you are using Garb. For example, in your Gemfile:
gem "vanity", "1.3.0" gem "garb", "0.5.0"
Next, authenticate using your account credentials. For example, in your config/environments/production.rb:
require "garb" Garb::Session.login('..email..', '..password..', account_type: "GOOGLE") rescue nil
๐ Last, define Vanity metrics that tap to Google Analytics metrics. For example:
metric "Acquisition: Visitors" do description "Unique visitors on any given page, as tracked by Google Analytics" google_analytics "UA-1828623-6", :visitors end
- โ Added: Support for Google Analytics metrics, thanks to Tony Pitale's Garb and blog post: http://www.viget.com/extend/user-goal-tracking-in-rails-with-vanity-and-google-analytics/
- โ Added: Vanity query parameter that you can use to choose a particular alternative, e.g. to tie an advertisement banner with content of the site.
- โ Added: Command line "vanity list" catalogs all ongoing experiments, their alternatives (and fingerprints) and all metrics.
- โ Added: Playground.reconnect!, particularly useful when forking (Passenger, Unicorn, etc).
- โ Added: Vanity loads Redis configuration from config/redis.yml (if you have such a file).
- ๐ Changed: New way to specify connection configuration: Vanity.playground.redis = "localhost:6379". Use this instead of the separate host/port/db attribute.
- ๐ Changed: Rails integration now separates use_vanity method, filters and helpers.
- Changed: Explicit vanity_context_filter and vanity_reload_filter so you can skip them, or order filters relative to them.
- ๐ Fixed: If metric cannot be loaded (e.g. offline, no db access) show error message for that metric but don't break dashboard.
- ๐ Fixed: AbTest incorrectly calls identify method instead of identity (issue #2)
- ๐ Fixed: Running vanity command, automatically detects and loads Rails.
- ๐ Fixed: Vanity now picks up on load_path set from within config/environment.rb.
- โ Removed: Vanity.playground.define is deprecated. Bad choice for a method name. If you need this feature, make a suggestion and let's create a better API.