Question

I'm developing an app for a client, which enables social sharing of client's product via twitter and facebook.

I successfully implemented sharing feature in twitter and facebook, and also I have to implemented report feature for these sharing in web service. To do this, I think these steps are sufficient:

1) Keep user's uniqueid for each platform in NSUserDefaults

2) Whenever user successfully shared content, Open NSUrlConnection to my web service and notified with user's unique id and shared content id.

3) Therefore, in web service, I can keep track of shared contents.

Is this really a good approach? Or, should I follow another approach?

Was it helpful?

Solution

I would use an analytics framework for something like this. I've used Flurry and Google Analytics for stuff like this. They both already have SDKs built that will connect to their web services. They are very easy to integrate.

Flurry is my personal favorite.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top