Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/whyisjake/dash

Simple function for adding Dash Analytics to you site. Could be used on the front end showing trending, popular, and most shared posts.
https://github.com/whyisjake/dash

Last synced: 6 days ago
JSON representation

Simple function for adding Dash Analytics to you site. Could be used on the front end showing trending, popular, and most shared posts.

Awesome Lists containing this project

README

        

Dash Widget
===========

By [Jake Spurlock](http://jakespurlock.com)

This function serves as an easy front end for accessing Parsely Dash Analytics via PHP.

Getting Started
---------------

* Add this plugin either to your WordPress theme directory, or include it via php methods.

Diving In
---------

* The function has six parameters that can be used.
* $type is the first, currently three options are available: realtime, analytics, and shares.
* $hits is the string that prefaces the hit counter. If `null`, the hit counter isn't added.
* $limit is an integer that limits that amount of posts returned. Default is five.
* $size is an integer to return the width of the image. This is added as a style element on the image, and will not resize the image.
* $api is the sitename/url of the site that you want to get stats for. ie. `makezine.com`.
* $secret is the secret api key. This is not required unless you have this turned on in your account

License
-------

See LICENSE.