Which email provider are your users on?

Pablo Villalba November 26 2009

I wrote a snippet of code that tells you which email providers are your users on.

Teambox’s users are from:

  • GMail, 34%
  • Hotmail, 12%
  • Yahoo, 3%

A good share of the market goes for GMail, suggesting that linking Google Accounts could be useful.

It’s just a simple Rails snippet, which I shared as a gist. You can use it in your Ruby app, just rename User and email fields to whichever you use.

Would you like to try the snippet on your app, and share the results as a comment?

Read also

  • No provider data from me, I just like to refactor code :)

    providers.inject(Hash.new {|h, k| h[k] = 0 }) do |hash, provider|
    hash[provider] += 1
    hash
    end.sort_by(&:last).reverse
  • Awesome! I didn't know you could pass an initialization block for a hash :)
    Thanks, Miha!
  • Te hablo de memoria, pero en Rankia domina ampliamente hotmail, con yahoo y gmail peleando por el segundo puesto. Gmail está más extendido entre usuarios tecnológicamente avanzados...

    s2
  • hotmail.com (48%)
    gmail.com (23%)
    yahoo.es (4%)

    Spanish company promotional mini-site :)
  • Cool! Less techie users :)
blog comments powered by Disqus

Latest Posts