Real Value in Real Time
                 MongoDB-based Analytics at TeachStreet




Daryn Nakhuda
Chief Technology Officer
...
TeachStreet

                A marketplace for learning
                We help people find classes and teachers
          ...
TeachStreet

                Based in Seattle
                7 Full-time employees - 50% dev/engineering
                ...
Tech Stack
                Handful of physical servers
                Ruby on Rails
                Linux, Nginx, Mongrel...
Product

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




Real...
The Problem

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


“I’ve never once been...
June 2009
                             The site is working for you, really!




Real Value in Real Time
Mongo Seattle - Ju...
Teacher Dashboard (v1)


     Quick Snapshot of Activity
     Built on Google Analytics API




Real Value in Real Time
Mo...
Teacher Dashboard (v1)
                                  PROS


           •    Provided insight into a former void
      ...
Teacher Dashboard (v1)
                                  CONS
           •    Cumulative data only
           •    No date...
May 2010
                                 That’ll be $3 please




Real Value in Real Time
Mongo Seattle - July 2010
Daryn...
Metrics Dashboard v2
           •    Track conversions as well as traffic
           •    Real-time
           •    Date-fil...
Page Events
                                 ‘page_events’ collection



           •    Views to profile, listing & sessio...
Lead Events
                                 ‘lead_events’ collection

           •    Messages
           •    Phone Call...
Tracking Models


                EventAttributes




Real Value in Real Time
Mongo Seattle - July 2010
Daryn Nakhuda, Tea...
Tracking Models

               PageEvent




               PageViewEvent


Real Value in Real Time
Mongo Seattle - July ...
Sample Page Event
              { "_id" : ObjectId("4bbbed8c4e40d3593b000001"),
              "updated_at" : "Tue Apr 06 2...
Tracking Models

               LeadEvent



               CallEvent



Real Value in Real Time
Mongo Seattle - July 2010...
Sample Lead Event
              { "_id" : ObjectId("4bbbf00a3352585b29000003"),
              "updated_at" : "Tue Apr 06 2...
How we track
      JavaScript - for page actions, to filter robots




     Or, just directly to the logger



Real Value i...
Reporting
                Dashboard Presenters:
                •     Used from web as well as weekly activity emails
    ...
Some Presenter Code




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




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




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


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

              Find great local and online
   <a href...
Upcoming SlideShare
Loading in …5
×

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

3,524 views

Published on

Slides from a talk given by TeachStreet CTO Daryn Nakhuda at Mongo Seattle, July 27, 2010. #mongoseattle

Published in: Technology
0 Comments
5 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
3,524
On SlideShare
0
From Embeds
0
Number of Embeds
165
Actions
Shares
0
Downloads
52
Comments
0
Likes
5
Embeds 0
No embeds

No notes for slide

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

  1. 1. Real Value in Real Time MongoDB-based Analytics at TeachStreet Daryn Nakhuda Chief Technology Officer TeachStreet.com 1
  2. 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. 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. 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. 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. 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. 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. 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. 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. 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. 11. May 2010 That’ll be $3 please Real Value in Real Time Mongo Seattle - July 2010 Daryn Nakhuda, TeachStreet.com 11 11
  12. 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. 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. 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. 15. Tracking Models EventAttributes Real Value in Real Time Mongo Seattle - July 2010 Daryn Nakhuda, TeachStreet.com 15 15
  16. 16. Tracking Models PageEvent PageViewEvent Real Value in Real Time Mongo Seattle - July 2010 Daryn Nakhuda, TeachStreet.com 16 16
  17. 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. 18. Tracking Models LeadEvent CallEvent Real Value in Real Time Mongo Seattle - July 2010 Daryn Nakhuda, TeachStreet.com 18 18
  19. 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. 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. 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. 22. Some Presenter Code Real Value in Real Time Mongo Seattle - July 2010 Daryn Nakhuda, TeachStreet.com 22 22
  23. 23. Real Value in Real Time Mongo Seattle - July 2010 Daryn Nakhuda, TeachStreet.com 23 23
  24. 24. Metrics Dashboard (v2) Real Value in Real Time Mongo Seattle - July 2010 Daryn Nakhuda, TeachStreet.com 24 24
  25. 25. Weekly Summary Email Real Value in Real Time Mongo Seattle - July 2010 Daryn Nakhuda, TeachStreet.com 25 25
  26. 26. Q &A Real Value in Real Time Mongo Seattle - July 2010 Daryn Nakhuda, TeachStreet.com 26 26
  27. 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

×