JavaScript Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsWeb DesignJavaScript Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old January 5th, 2013, 09:13 PM
nbasso713 nbasso713 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2012
Posts: 64 nbasso713 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 11 h 36 m 11 sec
Reputation Power: 1
ShareThis Individual User Tracking

I would like to track when users on my site successfully share something using the ShareThis buttons on my website. I was considering using event tracking in JS and passing the variable to PHP. But this wouldn't be able to track whether the user shared a link or just clicked the button.

After further consideration it seemed that this methodology would not be very efficient, because I would also need to ensure that this would not track if a user shared the same page multiple times. I would then need to update the database to increment the particular user's total number of shares.

If anyone can think of a better more efficient way of being able to track individual user shares it would be appreciated. The new shareThis forums are **** these days so it's very difficult to get any suggestions from those guys. Thanks.

Reply With Quote
  #2  
Old January 6th, 2013, 02:00 PM
web_loone08's Avatar
web_loone08 web_loone08 is offline
Contributing User
Dev Shed Novice (500 - 999 posts)
 
Join Date: Aug 2008
Posts: 599 web_loone08 User rank is Second Lieutenant (5000 - 10000 Reputation Level)web_loone08 User rank is Second Lieutenant (5000 - 10000 Reputation Level)web_loone08 User rank is Second Lieutenant (5000 - 10000 Reputation Level)web_loone08 User rank is Second Lieutenant (5000 - 10000 Reputation Level)web_loone08 User rank is Second Lieutenant (5000 - 10000 Reputation Level)web_loone08 User rank is Second Lieutenant (5000 - 10000 Reputation Level)web_loone08 User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 1 Week 1 Day 12 h 40 m
Reputation Power: 69
You could use AJAX, when the button is clicked to update your database and also combine that with HTML5 Web Storage... to use localStorage or sessionStorage. This way... you could track shares and use storage to moderate when AJAX should track individual shares. As far as getting a 100% accurate tracking statistics on a share/posting to a social site... I think unless the site offers an API to track such type of post (for web developers); the onclick event of the "Share" button (from your own site), is probably your best tracking choice.

Reply With Quote
  #3  
Old January 6th, 2013, 02:06 PM
nbasso713 nbasso713 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2012
Posts: 64 nbasso713 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 11 h 36 m 11 sec
Reputation Power: 1
Quote:
Originally Posted by web_loone08
You could use AJAX, when the button is clicked to update your database and also combine that with HTML5 Web Storage... to use localStorage or sessionStorage. This way... you could track shares and use storage to moderate when AJAX should track individual shares. As far as getting a 100% accurate tracking statistics on a share/posting to a social site... I think unless the site offers an API to track such type of post (for web developers); the onclick event of the "Share" button (from your own site), is probably your best tracking choice.


Thanks that's a good idea. I've been holding back on using some HTML5 attributes just to make sure everything on my site can be supported and rendered properly on as many browsers as possible. I hope maybe a year from now we can use all HTML5 without worrying about these issues and people using out of date browsers, but what do you think?

Reply With Quote
  #4  
Old January 6th, 2013, 03:17 PM
web_loone08's Avatar
web_loone08 web_loone08 is offline
Contributing User
Dev Shed Novice (500 - 999 posts)
 
Join Date: Aug 2008
Posts: 599 web_loone08 User rank is Second Lieutenant (5000 - 10000 Reputation Level)web_loone08 User rank is Second Lieutenant (5000 - 10000 Reputation Level)web_loone08 User rank is Second Lieutenant (5000 - 10000 Reputation Level)web_loone08 User rank is Second Lieutenant (5000 - 10000 Reputation Level)web_loone08 User rank is Second Lieutenant (5000 - 10000 Reputation Level)web_loone08 User rank is Second Lieutenant (5000 - 10000 Reputation Level)web_loone08 User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 1 Week 1 Day 12 h 40 m
Reputation Power: 69
All modern (most up-to-date versions) browsers support web storage, but you are correct... older browsers do not support it. A workaround for this, would be to use a cookie for those non-supported browsers; if you wanted to implement web storage, that is. It may be a little more tedious to it this way; but usually with anything new; you have to create some type of workaround/hack to make something like this cross-browser compatible.

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignJavaScript Development > ShareThis Individual User Tracking

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap