Skip to content

firetix/social_detector

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 

Repository files navigation

MoQuery the Beginning

social_detector

Inspired by http://www.tomanthony.co.uk/blog/detect-visitor-social-networks/

Usage

Simplest usage

<script src="social_detector.js"></script>
<script>
	social_detector({
		facebook: 'facebook_app_id'
	});
</script>

Options

facebook - Facebook appId. Required if you want detect login status for facebook.com
ga - Google analytics site's ID. If you set it, it will load GA script, set `_setAccount` and `_trackPageview`.
callback - Callback function. Set it if you don't want to report to GA, but process it manually

Platform supported

facebook, twitter, tumblr, google, google_plus

TODO

  • add detection of another social networks

About

Detect if visitors are logged into social networks

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 69.7%
  • JavaScript 30.3%