The most basic installation simply requires that you upload the 'micromint' folder to your /wp-content/plugins directory. Then, from the Administration -> Plugins menu, simply activate the plugin and indicate where Mint is installed. Now the Mint tracking code is automatically inserted into wordpress. Done.
In order to integrate statistics into WordPress, you need to install an API for Mint. There are currently two supported options, the Exposé pepper, by Adam Livesley or the µAPI which is heavily based on the Exposé code, with some improvements. The µAPI is distributed along with this package. In the future, I hope to discontinue the µAPI and simply provide an exposure for Exposé, but at this time it is not mature enough to be the reccomended option. Although both pepper are supported, at this time I reccomend the µAPI pepper for several reasons:
Please Note: You cannot have both Exposé and µAPI installed concurently. If you already have Exposé installed (with Firemint, for example), you should simply drop the included /exposures/micro.php
file into the /exposures
folder of your Exposé installation
To install the API (installation is the same for both), simply upload the pepper to the appropriate folder in mint (/pepper/chrisoconnell/
and /pepper/84degrees/
for µAPI and Exposé respectively). Go to the Mint control panel and enable the API. Enter an API key. If you are using the Exposé API, make sure that the micro.php file is in /pepper/84degrees/expose/exposures/
.
In WordPress goto 'Settings > µMint'. Change your mint URL if neccessary. Select "Integrate Mint statistics into WordPress?". Select the appropriate API and enter the API key.
To setup the sidebar widget, visit 'Design > Widgets'. You can manually configure which datafields are displayed as well as display labels for different data.
$MICROMINT_INTERVAL
value at the top of microMint.php
. This needs to be something which can be fed into php strtotime
function.&debug
to the end of the µMint configuration page. This will both print debug information as well as perform and immediate updatemicroMint.widget.php
(sidebar) and mircoMint.dashboard.php