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.