This howto was originally contributed by jalenack
Setting up Mint to record stats for your WordPress blog is fairly easy. First thing to do is set up the MySQL database.
Open your wp-config.php file in your main wordpress directory. This file contains the connection details needed to run WP. We’ll be lifting these details for Mint. Take note of the following:
// ** MySQL settings ** //
define('DB_NAME', 'myblogdatabase'); // The name of the database
define('DB_USER', 'username'); // Your MySQL username
define('DB_PASSWORD', 'password'); // ...and password
define('DB_HOST', 'localhost'); // ...and the server MySQL is running on
Now let’s copy the connection details to Mint. Open the db.php file in the config directory of Mint. Now, match the settings of WP to Mint.
$Mint = new Mint (array
(
'server' => 'DB_HOST',
'username' => 'DB_USER',
'password' => 'DB_PASSWORD',
'database' => 'DB_NAME',
'tblPrefix' => 'mint_'
));
For example, if your DB_NAME in WordPress is ‘myblogdatabase’, then the fourth detail in the mint config should also be ‘myblogdatabase’, as you can see above.
That should get you all ready to go. Upload your Mint files if you haven’t already, and browse over to where you just put Mint. The installer should guide you through the main mint installation.
Now, you’ve got to add the JavaScript include. Copy the text given by the installer, which should look something like
<script src="/mint/?js" type="text/javascript"></script>
Next, edit your header.php file of your theme directory. Your theme directory is located at /wp-content/themes/<YOUR CURRENT THEME>/ .. Find the beginning <head> tag. Right after that, or anywhere inside the <head> tag, paste the JavaScript code you copied earlier. If you’ve lost it, you can get it again by going to your Mint preferences and clicking “Instructions”.
Alternately you can grab the WP Mint Wordpress plugin to add the necessary JavaScript to all of your pages.
Alright, Mint should be tracking your hits now. Huzzah!
If you want to use the Local Search Pepper, it should be fairly easy to set up. Go to Preferences > Local Search and just add “/” to the first input and “s” to the second, and then click “Done”.