SlideShare a Scribd company logo
Real Value in Real Time
                 MongoDB-based Analytics at TeachStreet




Daryn Nakhuda
Chief Technology Officer
TeachStreet.com



                                                          1
TeachStreet

                A marketplace for learning
                We help people find classes and teachers
                We help teachers get more students




Real Value in Real Time
Mongo Seattle - July 2010
Daryn Nakhuda, TeachStreet.com        2
                                                          2
TeachStreet

                Based in Seattle
                7 Full-time employees - 50% dev/engineering
                Launched in April 2008




Real Value in Real Time
Mongo Seattle - July 2010
Daryn Nakhuda, TeachStreet.com        3
                                                              3
Tech Stack
                Handful of physical servers
                Ruby on Rails
                Linux, Nginx, Mongrel, PostgreSQL, Sphinx
                MongoDB (MongoMapper, because we <3 jnunemaker)



Real Value in Real Time
Mongo Seattle - July 2010
Daryn Nakhuda, TeachStreet.com             4
                                                                  4
Product

 Profile Page
 Class Listing and Session Pages
 Phone tracking, payment processing, marketing tools, etc.




Real Value in Real Time
Mongo Seattle - July 2010
Daryn Nakhuda, TeachStreet.com                    5
                                                             5
The Problem

    People love the idea, but they have no idea if
    it is really working for them.


“I’ve never once been contacted by a student who found me on TeachStreet”



Real Value in Real Time
Mongo Seattle - July 2010
Daryn Nakhuda, TeachStreet.com        6
                                                                            6
June 2009
                             The site is working for you, really!




Real Value in Real Time
Mongo Seattle - July 2010
Daryn Nakhuda, TeachStreet.com                7
                                                                    7
Teacher Dashboard (v1)


     Quick Snapshot of Activity
     Built on Google Analytics API




Real Value in Real Time
Mongo Seattle - July 2010
Daryn Nakhuda, TeachStreet.com    8
                                           8
Teacher Dashboard (v1)
                                  PROS


           •    Provided insight into a former void
           •    Easy to understand
           •    Quickly implemented, no IT impact




Real Value in Real Time
Mongo Seattle - July 2010
Daryn Nakhuda, TeachStreet.com       9
                                                      9
Teacher Dashboard (v1)
                                  CONS
           •    Cumulative data only
           •    No date filters / trending information
           •    Not real-time
           •    URL-based, fragile
           •    “Operationally-Annoying”



Real Value in Real Time
Mongo Seattle - July 2010
Daryn Nakhuda, TeachStreet.com       10
                                                        10
May 2010
                                 That’ll be $3 please




Real Value in Real Time
Mongo Seattle - July 2010
Daryn Nakhuda, TeachStreet.com             11
                                                        11
Metrics Dashboard v2
           •    Track conversions as well as traffic
           •    Real-time
           •    Date-filters / Trends
           •    Keep it simple and easy to use
           •    Flexible

Real Value in Real Time
Mongo Seattle - July 2010
Daryn Nakhuda, TeachStreet.com         12
                                                      12
Page Events
                                 ‘page_events’ collection



           •    Views to profile, listing & session pages
           •    Can also be used for homepage, search,
                featured placements, etc.




Real Value in Real Time
Mongo Seattle - July 2010
Daryn Nakhuda, TeachStreet.com              13
                                                            13
Lead Events
                                 ‘lead_events’ collection

           •    Messages
           •    Phone Calls
           •    URL Clicks
           •    Enrollments
           •    More Information / Affiliates

                  These are the things people will ‘do the math’ with

Real Value in Real Time
Mongo Seattle - July 2010
Daryn Nakhuda, TeachStreet.com              14
                                                                        14
Tracking Models


                EventAttributes




Real Value in Real Time
Mongo Seattle - July 2010
Daryn Nakhuda, TeachStreet.com    15
                                             15
Tracking Models

               PageEvent




               PageViewEvent


Real Value in Real Time
Mongo Seattle - July 2010
Daryn Nakhuda, TeachStreet.com    16
                                             16
Sample Page Event
              { "_id" : ObjectId("4bbbed8c4e40d3593b000001"),
              "updated_at" : "Tue Apr 06 2010 19:27:24 GMT-0700
              (PDT)", "current_user_id" : null,
              "parent_teacher_id" : null, "listing_session_id" :
              null, "sub_page" : "main", "page_type" : "User",
              "session_id" : "747469eb432e27fc4a678a8805563dbf",
              "url" : "http://www.teachstreet.com/teacher/diablo-k9-
              academy", "subdomain" : null, "listing_id" : null,
              "teacher_id" : 18467, "_type" : "PageViewEvent",
              "count" : 1, "created_at" : "Tue Apr 06 2010 19:27:24
              GMT-0700 (PDT)" }




Real Value in Real Time
Mongo Seattle - July 2010
Daryn Nakhuda, TeachStreet.com         17
                                                                       17
Tracking Models

               LeadEvent



               CallEvent



Real Value in Real Time
Mongo Seattle - July 2010
Daryn Nakhuda, TeachStreet.com    18
                                             18
Sample Lead Event
              { "_id" : ObjectId("4bbbf00a3352585b29000003"),
              "updated_at" : "Tue Apr 06 2010 19:38:02 GMT-0700
              (PDT)", "parent_teacher_id" : 116845,
              "current_user_id" : null, "listing_session_id" :
              194028, "session_id" :
              "4a2146ae80971b47ec6acd86827506f9", "url" : "http://
              www.teachstreet.com/redirect?
              source_id=cl-87e9otqv6o&url=http%3A%2F
              %2Fwww.wyzant.com%2Ftutorprofile3480833",
              "subdomain" : null, "listing_id" : 153395,
              "teacher_id" : 119644, "_type" : "ClickThroughEvent",
              "count" : 1, "source_type" : "ListingSession",
              "created_at" : "Tue Apr 06 2010 19:38:02 GMT-0700
              (PDT)" }



Real Value in Real Time
Mongo Seattle - July 2010
Daryn Nakhuda, TeachStreet.com         19
                                                                      19
How we track
      JavaScript - for page actions, to filter robots




     Or, just directly to the logger



Real Value in Real Time
Mongo Seattle - July 2010
Daryn Nakhuda, TeachStreet.com        20
                                                       20
Reporting
                Dashboard Presenters:
                •     Used from web as well as weekly activity emails
                •     Aggregate functions
                •     Map/Reduce queries




Real Value in Real Time
Mongo Seattle - July 2010
Daryn Nakhuda, TeachStreet.com              21
                                                                        21
Some Presenter Code




Real Value in Real Time
Mongo Seattle - July 2010
Daryn Nakhuda, TeachStreet.com   22
                                      22
Real Value in Real Time
Mongo Seattle - July 2010
Daryn Nakhuda, TeachStreet.com   23
                                      23
Metrics Dashboard (v2)




Real Value in Real Time
Mongo Seattle - July 2010
Daryn Nakhuda, TeachStreet.com   24
                                      24
Weekly Summary Email




Real Value in Real Time
Mongo Seattle - July 2010
Daryn Nakhuda, TeachStreet.com   25
                                      25
Q &A


Real Value in Real Time
Mongo Seattle - July 2010
Daryn Nakhuda, TeachStreet.com    26
                                        26
Thanks!
                If you like what you’ve seen, do me a favor:

              Find great local and online
   <a href=”http://www.teachstreet.com/”>Classes</a>
                     on TeachStreet


                             Email: daryn@teachstreet.com
                                     Twitter: @daryn

Real Value in Real Time
Mongo Seattle - July 2010
Daryn Nakhuda, TeachStreet.com            27
                                                               27

More Related Content

PPTX
Notetaking
PDF
Conversations with the Pre-Customer
PPT
AEGIS Conference of African Studies 2011 - Uppsala [The Nile River Basin: in ...
PPS
Staying Positive
PPT
Cascao Arava Hydropolitical Cooperation Nile Basin
PPTX
Cascao_TWM_Workshop_Nile_Land
PDF
Attacker Ghost Stories - ShmooCon 2014
PPTX
Time management
Notetaking
Conversations with the Pre-Customer
AEGIS Conference of African Studies 2011 - Uppsala [The Nile River Basin: in ...
Staying Positive
Cascao Arava Hydropolitical Cooperation Nile Basin
Cascao_TWM_Workshop_Nile_Land
Attacker Ghost Stories - ShmooCon 2014
Time management

Viewers also liked (20)

PPT
Frenchgradsession2008newb
PPTX
Video Upload Slide Share
PPS
10 Food
PPT
Sponges&Cnidarians 08
DOCX
Arte Rococó
PDF
Final Gran Fury
PDF
URL Best Practices | Rand Fishkin | SMX East NYC 2009
PPT
PPS
Antphilo
PDF
Comiat del curs de Perl
PPT
Land 'Grabbing' in the Nile Basin and implications for the regional water sec...
PPS
10 Roses
PPTX
Life in Korea
PPT
Improving the correlation hunting in a large quantity of SOM component planes
PPT
2. Initiatie
PDF
Local and Global Gating of Synaptic Plasticity
PDF
Becoming Accidental Entrepreneurs
PPS
Open Only If You Have Time For God
PPT
Ulmer chapter1definingcrisiscommunication
PPS
The Four Taus Band 1964
Frenchgradsession2008newb
Video Upload Slide Share
10 Food
Sponges&Cnidarians 08
Arte Rococó
Final Gran Fury
URL Best Practices | Rand Fishkin | SMX East NYC 2009
Antphilo
Comiat del curs de Perl
Land 'Grabbing' in the Nile Basin and implications for the regional water sec...
10 Roses
Life in Korea
Improving the correlation hunting in a large quantity of SOM component planes
2. Initiatie
Local and Global Gating of Synaptic Plasticity
Becoming Accidental Entrepreneurs
Open Only If You Have Time For God
Ulmer chapter1definingcrisiscommunication
The Four Taus Band 1964
Ad

Similar to Real Value in Real Time: MongoDB-based Analytics at TeachStreet (20)

PPTX
Administrator tutorial 2011
PPTX
Cool Tools Show and Tell
PDF
Thrdplace crowdfunder deck
PDF
Centre for Arts and Technology - Radian6
PDF
Social Media Seminar for Non-profits
PDF
Social Media Seminar for Non-Profits
PDF
Facebook Case Study
PDF
Non techie journey in social internet age noiselessinnovation
PDF
Real-time Analytics
PDF
Zilladeck public
PDF
Facebook & Google+: Essentials for Small Business
PDF
Lead Gen in the Post-PC World - LeadsCon 2012
KEY
foursquare Data 2011
PPTX
User tutorial 2011
PPTX
New and Not So New Social Media Channels
PPTX
PDF
Radian6 issues tips-tricks
PDF
Your nonprofit needs a social media strategy
PDF
WDE08 Visualizing Web of Data
PDF
Natural Learning, Networks, Slam Dunk Roi
Administrator tutorial 2011
Cool Tools Show and Tell
Thrdplace crowdfunder deck
Centre for Arts and Technology - Radian6
Social Media Seminar for Non-profits
Social Media Seminar for Non-Profits
Facebook Case Study
Non techie journey in social internet age noiselessinnovation
Real-time Analytics
Zilladeck public
Facebook & Google+: Essentials for Small Business
Lead Gen in the Post-PC World - LeadsCon 2012
foursquare Data 2011
User tutorial 2011
New and Not So New Social Media Channels
Radian6 issues tips-tricks
Your nonprofit needs a social media strategy
WDE08 Visualizing Web of Data
Natural Learning, Networks, Slam Dunk Roi
Ad

More from TeachStreet (11)

PPTX
December 2009 TeachStreet Teacher Webinar & Meet-up
PPTX
Invoicing
PPTX
Create A Stellar Listing
PPT
Listings Update
PPTX
Call Tracker Update
PPT
Introducing the Teacher Dashbaord
PPT
Introduction to Twitter (w/ Allen Klosowski)
PPT
Getting Started On Twitter
PPTX
Manage Photos on TeachStreet
PPTX
Reviews 101
PPT
TeachStreet Happy Hour
December 2009 TeachStreet Teacher Webinar & Meet-up
Invoicing
Create A Stellar Listing
Listings Update
Call Tracker Update
Introducing the Teacher Dashbaord
Introduction to Twitter (w/ Allen Klosowski)
Getting Started On Twitter
Manage Photos on TeachStreet
Reviews 101
TeachStreet Happy Hour

Recently uploaded (20)

PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PDF
NewMind AI Monthly Chronicles - July 2025
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PDF
Modernizing your data center with Dell and AMD
PPTX
PA Analog/Digital System: The Backbone of Modern Surveillance and Communication
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PDF
CIFDAQ's Market Insight: SEC Turns Pro Crypto
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PDF
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
PDF
Approach and Philosophy of On baking technology
PDF
Encapsulation theory and applications.pdf
PDF
cuic standard and advanced reporting.pdf
PPT
Teaching material agriculture food technology
PDF
Review of recent advances in non-invasive hemoglobin estimation
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PDF
KodekX | Application Modernization Development
PPTX
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
DOCX
The AUB Centre for AI in Media Proposal.docx
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
NewMind AI Monthly Chronicles - July 2025
Dropbox Q2 2025 Financial Results & Investor Presentation
Modernizing your data center with Dell and AMD
PA Analog/Digital System: The Backbone of Modern Surveillance and Communication
Digital-Transformation-Roadmap-for-Companies.pptx
Diabetes mellitus diagnosis method based random forest with bat algorithm
CIFDAQ's Market Insight: SEC Turns Pro Crypto
Agricultural_Statistics_at_a_Glance_2022_0.pdf
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
Approach and Philosophy of On baking technology
Encapsulation theory and applications.pdf
cuic standard and advanced reporting.pdf
Teaching material agriculture food technology
Review of recent advances in non-invasive hemoglobin estimation
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
KodekX | Application Modernization Development
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
Advanced methodologies resolving dimensionality complications for autism neur...
The AUB Centre for AI in Media Proposal.docx

Real Value in Real Time: MongoDB-based Analytics at TeachStreet

  • 1. Real Value in Real Time MongoDB-based Analytics at TeachStreet Daryn Nakhuda Chief Technology Officer TeachStreet.com 1
  • 2. TeachStreet A marketplace for learning We help people find classes and teachers We help teachers get more students Real Value in Real Time Mongo Seattle - July 2010 Daryn Nakhuda, TeachStreet.com 2 2
  • 3. TeachStreet Based in Seattle 7 Full-time employees - 50% dev/engineering Launched in April 2008 Real Value in Real Time Mongo Seattle - July 2010 Daryn Nakhuda, TeachStreet.com 3 3
  • 4. Tech Stack Handful of physical servers Ruby on Rails Linux, Nginx, Mongrel, PostgreSQL, Sphinx MongoDB (MongoMapper, because we <3 jnunemaker) Real Value in Real Time Mongo Seattle - July 2010 Daryn Nakhuda, TeachStreet.com 4 4
  • 5. Product Profile Page Class Listing and Session Pages Phone tracking, payment processing, marketing tools, etc. Real Value in Real Time Mongo Seattle - July 2010 Daryn Nakhuda, TeachStreet.com 5 5
  • 6. The Problem People love the idea, but they have no idea if it is really working for them. “I’ve never once been contacted by a student who found me on TeachStreet” Real Value in Real Time Mongo Seattle - July 2010 Daryn Nakhuda, TeachStreet.com 6 6
  • 7. June 2009 The site is working for you, really! Real Value in Real Time Mongo Seattle - July 2010 Daryn Nakhuda, TeachStreet.com 7 7
  • 8. Teacher Dashboard (v1) Quick Snapshot of Activity Built on Google Analytics API Real Value in Real Time Mongo Seattle - July 2010 Daryn Nakhuda, TeachStreet.com 8 8
  • 9. Teacher Dashboard (v1) PROS • Provided insight into a former void • Easy to understand • Quickly implemented, no IT impact Real Value in Real Time Mongo Seattle - July 2010 Daryn Nakhuda, TeachStreet.com 9 9
  • 10. Teacher Dashboard (v1) CONS • Cumulative data only • No date filters / trending information • Not real-time • URL-based, fragile • “Operationally-Annoying” Real Value in Real Time Mongo Seattle - July 2010 Daryn Nakhuda, TeachStreet.com 10 10
  • 11. May 2010 That’ll be $3 please Real Value in Real Time Mongo Seattle - July 2010 Daryn Nakhuda, TeachStreet.com 11 11
  • 12. Metrics Dashboard v2 • Track conversions as well as traffic • Real-time • Date-filters / Trends • Keep it simple and easy to use • Flexible Real Value in Real Time Mongo Seattle - July 2010 Daryn Nakhuda, TeachStreet.com 12 12
  • 13. Page Events ‘page_events’ collection • Views to profile, listing & session pages • Can also be used for homepage, search, featured placements, etc. Real Value in Real Time Mongo Seattle - July 2010 Daryn Nakhuda, TeachStreet.com 13 13
  • 14. Lead Events ‘lead_events’ collection • Messages • Phone Calls • URL Clicks • Enrollments • More Information / Affiliates These are the things people will ‘do the math’ with Real Value in Real Time Mongo Seattle - July 2010 Daryn Nakhuda, TeachStreet.com 14 14
  • 15. Tracking Models EventAttributes Real Value in Real Time Mongo Seattle - July 2010 Daryn Nakhuda, TeachStreet.com 15 15
  • 16. Tracking Models PageEvent PageViewEvent Real Value in Real Time Mongo Seattle - July 2010 Daryn Nakhuda, TeachStreet.com 16 16
  • 17. Sample Page Event { "_id" : ObjectId("4bbbed8c4e40d3593b000001"), "updated_at" : "Tue Apr 06 2010 19:27:24 GMT-0700 (PDT)", "current_user_id" : null, "parent_teacher_id" : null, "listing_session_id" : null, "sub_page" : "main", "page_type" : "User", "session_id" : "747469eb432e27fc4a678a8805563dbf", "url" : "http://www.teachstreet.com/teacher/diablo-k9- academy", "subdomain" : null, "listing_id" : null, "teacher_id" : 18467, "_type" : "PageViewEvent", "count" : 1, "created_at" : "Tue Apr 06 2010 19:27:24 GMT-0700 (PDT)" } Real Value in Real Time Mongo Seattle - July 2010 Daryn Nakhuda, TeachStreet.com 17 17
  • 18. Tracking Models LeadEvent CallEvent Real Value in Real Time Mongo Seattle - July 2010 Daryn Nakhuda, TeachStreet.com 18 18
  • 19. Sample Lead Event { "_id" : ObjectId("4bbbf00a3352585b29000003"), "updated_at" : "Tue Apr 06 2010 19:38:02 GMT-0700 (PDT)", "parent_teacher_id" : 116845, "current_user_id" : null, "listing_session_id" : 194028, "session_id" : "4a2146ae80971b47ec6acd86827506f9", "url" : "http:// www.teachstreet.com/redirect? source_id=cl-87e9otqv6o&url=http%3A%2F %2Fwww.wyzant.com%2Ftutorprofile3480833", "subdomain" : null, "listing_id" : 153395, "teacher_id" : 119644, "_type" : "ClickThroughEvent", "count" : 1, "source_type" : "ListingSession", "created_at" : "Tue Apr 06 2010 19:38:02 GMT-0700 (PDT)" } Real Value in Real Time Mongo Seattle - July 2010 Daryn Nakhuda, TeachStreet.com 19 19
  • 20. How we track JavaScript - for page actions, to filter robots Or, just directly to the logger Real Value in Real Time Mongo Seattle - July 2010 Daryn Nakhuda, TeachStreet.com 20 20
  • 21. Reporting Dashboard Presenters: • Used from web as well as weekly activity emails • Aggregate functions • Map/Reduce queries Real Value in Real Time Mongo Seattle - July 2010 Daryn Nakhuda, TeachStreet.com 21 21
  • 22. Some Presenter Code Real Value in Real Time Mongo Seattle - July 2010 Daryn Nakhuda, TeachStreet.com 22 22
  • 23. Real Value in Real Time Mongo Seattle - July 2010 Daryn Nakhuda, TeachStreet.com 23 23
  • 24. Metrics Dashboard (v2) Real Value in Real Time Mongo Seattle - July 2010 Daryn Nakhuda, TeachStreet.com 24 24
  • 25. Weekly Summary Email Real Value in Real Time Mongo Seattle - July 2010 Daryn Nakhuda, TeachStreet.com 25 25
  • 26. Q &A Real Value in Real Time Mongo Seattle - July 2010 Daryn Nakhuda, TeachStreet.com 26 26
  • 27. Thanks! If you like what you’ve seen, do me a favor: Find great local and online <a href=”http://www.teachstreet.com/”>Classes</a> on TeachStreet Email: daryn@teachstreet.com Twitter: @daryn Real Value in Real Time Mongo Seattle - July 2010 Daryn Nakhuda, TeachStreet.com 27 27