EddyVerbruggen / SocialSharing-PhoneGap-Plugin

👨‍❤️‍💋‍👨 Cordova plugin to share text, a file (image/PDF/..), or a URL (or all three) via the native sharing widget
MIT License
1.78k stars 907 forks source link

Analytics #119

Open anonrig opened 10 years ago

anonrig commented 10 years ago

Is it possible to track if the user tweeted or posted something with socialsharing?

EddyVerbruggen commented 10 years ago

Hi,

You could use the callbacks of the share functions, but as the readme states.. they're not all too reliable (the platforms are to blame here, not the plugin).

What I've done myself is simply pushing an event to the GAPlugin when the user presses the share button or when the successCallback is received.

marcsyp commented 10 years ago

I'm using Parse inside Phonegap (Cordova actually), and I do all my analytics inside the callback functions as well. Would be nice if we had access to the particular feature that was requested using the generic Share function.

anonrig commented 10 years ago

Actually, I use success and error callbacks.

SocialSharing.prototype.share = function (message, subject, file, url, successCallback, errorCallback) {};

zwacky commented 8 years ago

using successCallback as well. but is there a way to track what social service has been used, when using socialsharing.share?

EddyVerbruggen commented 8 years ago

@zwacky no unless you use shareViaTwitter etc.