views:

56

answers:

1

I need to add analytics feature to our web service so we can provide our customers a way to understand their own content. I was wondering if anybody can provide some pointers, guidelines on designing such solutions. I know this is a little too open-end. Here is a list of concrete questions, and I have a vague idea on some of them but I would like to see more references or best practices:

  1. How to organize the database for analytics data so it won't hurt site performance and scalability?
  2. How to implement the tracking code? JavaScript?
  3. We allow people to embed the content in other web sites, using iframe. How do we track web analytics for that? For example, how to we track the traffic source?
  4. How do we track the "mentioning" on social media? Like, somebody blogged about a piece of content, or twittered/facebook'ed the content.

Thanks!

+1  A: 

Are you absolutely sure you want to build your own analytics rather than use Google Analytics?

If you want to mash up the data to add value for your clients, you can use the Analytics Data Export API -- that way, your time is spent on that end of the deal, rather than reinventing the analytics wheel

stevejalim
Thanks for the response! I didn't know I can export the data and this looks very interesting. The reason I am considering building my own is because the analytics is not for myself, but for our customers as a service provided by us. I would rather branding the analytics as our feature instead of "integration with google analytics." I also need to add other analytics that google does not provide.
ycseattle