I'm curently writing a web app that's supposed to take care of analytics and traffic on the application for our users. The users should be able to log in to the application and see a special area where they can see traffic stats for say, their Profile.
Now, there might be a number of ways to get this done and i'm looking at Google Analytics as an ideal solution.
1) So, what we are planning to do is that have the users sign up for Google Analytics and just key in their Analytics UA-XXXXXXXXX code when they are registering.. and then the application could spit out required Google Analytics tracking code on that particular page (User Profile) to log traffic and analytics. But the downside to this is that while registering for Google Analytics you have to link up a domain - and you need to verify domain ownership - which would belong to us and this might become a hassle for the users.
2) We can use Google Analytics API to pull data from our personal account and throw the information out to the user when he/she logs in - Not sure how this would go since i havent yet had a look at Google Analytics API. May be this would be an ideal solution?
Is there a more elegant solution where i could create sort of buckets or containers etc inside Google Analytics for our every user and then pulling data would become easy for us.