Code Monkey home page Code Monkey logo

wp-social-metrics-tracker's Introduction

Social Metrics Tracker is a Wordpress plugin for viewing and analyzing the social performance of your site. Out of the box, SharedCount tracks social interactions for all of your posts and pages from a handful of popular networks, including Facebook, Twitter, Google, Pinterest, LinkedIn, and StumbleUpon. There is no setup required; it just works.

Quick Start

  1. Download the development release.
  2. From your Dashboard Screen, add and activate the plugin.

uploading the plugin

That’s it.

using the plugin

... profit!

Developer Guide

Good news, everyone!

Social Metrics Tracker stores social metrics in a way that can be accessed by other WP plugins or themes. For example, the social metrics could be used to display a feed of the most popular posts. Metrics are stored as custom post meta fields on each individual post.

To display the total number of social interactions, get the post meta:

<?php echo get_post_meta(get_the_ID(), 'socialcount_TOTAL', true); ?>

Here is a listing of all of the available data fields which you can access in that way:

Service Meta Field Name
Total socialcount_TOTAL
Facebook socialcount_facebook
Twitter socialcount_twitter
Google Plus socialcount_googleplus
LinkedIn socialcount_linkedin
Pinterest socialcount_pinterest
Digg socialcount_diggs
Delicious socialcount_delicious
Reddit socialcount_reddit
StumbleUpon socialcount_stumbleupon
Last Updated Timestamp socialcount_LAST_UPDATED

Extending the plugin

There are some Wordpress action hooks which can be used to extend the functionality of this plugin.

social_metrics_post_sync is called when an individual post is being updated, before new data is downloaded. social_metrics_post_sync_complete is called when an individual post is done being updated.

FAQ

Q: Where is social network data gathered from?

A: Share counts and interactions are gathered from SharedCount.

Q: What social networks are measured?

A: Facebook, Twitter, Reddit, LinkedIn, Digg, Delicious, StumbleUpon, Pinterest, and Google+.

Q: When is the data updated?

A: When activating the plugin, all posts are queued for an update; this takes some time to complete. After that, the data is updated every few hours using the Wordpress Cron system. When a post is visited, if no update has happened recently then that post is placed in queue for an update. When the Wordpress Cron runs, all posts in the queue will be updated. You can configure the TTL (the amount of time to wait between updates) on the options page for the plugin. This method of updating ensures that site visitors do not experience any additional load time due to these data updates.

Q: Umm, what about page views?

A: Page views are on the way, okay? You saw that this was a development branch, right?

Q. Was this made with magic?

A: Yes, we used the tears of a baby unicorn forlock. Also, PHP.

Q: A whole University created this? Who did you pay?

A: Please direct your praise and admonishment to Ben Cole, a Chapman University graduate turned staff and web marketing ninja / rockstar / whatever hipster phrase they are throwing around these days.

Q: Graduate turned staff?

Ben Cole

Q: Why was this done?

We wanted to track posts on social networks to see which stories students, alumni, and faculty were most interested in sharing. However, the application is far from limited to higher education. So, we thought, we should share this.

Q: But why? I mean, really, why?

42.

Contributing

Anyone and everyone is welcome to contribute.

wp-social-metrics-tracker's People

Contributors

jameskerr avatar jonathantneal avatar bcole808 avatar

Watchers

 avatar James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.