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:
- How to organize the database for analytics data so it won't hurt site performance and scalability?
- How to implement the tracking code? JavaScript?
- 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?
- How do we track the "mentioning" on social media? Like, somebody blogged about a piece of content, or twittered/facebook'ed the content.
Thanks!