Just insert the following code into your functions.php file, and you’re done. Don’t forget to paste your Google Analytics code on line 5.
<?php
add_action(‘wp_footer’, ‘ga’);
function ga() { ?>
// Paste your Google Analytics code here
<?php } ?>
Have you checked out the new Headway theme for WordPress? It is pretty cool. You can read a review here.
Looking for WordPress hosting? Try WP Web Host. Prices starts at $5/month and you can try it for free!Insert Google Analytics without editing your theme
809 readersAs mobile devices, as such as Blackberries or iPhones, are becomming more and more popular, bloggers may want to detect those visitors and redirect them to a mobile version of their blog. Here is a recipe to detect mobile visitors.Looking for WordPress hosting? Try WP Web Host. Prices starts at $5/month and you can try
1586 readersDo you know that it is possible to insert post in WordPress programmatically? In this recipe, I'll show you how to do it easily.Looking for WordPress hosting? Try WP Web Host. Prices starts at $5/month and you can try it for free!WordPress tip: Insert posts programmatically
2155 readersMany plugins are made of only *.php files and most of the time they do allow direct access. Depending on what's in your files that might be a potential security hole. Today's tip will show you how to prevent direct access to plugin files.Looking for WordPress hosting? Try WP Web Host. Prices starts at $5/month
1916 readersWordPress have a feature which saves various copies of your posts in order to allow you to compare revisions or restore an older version of your posts. This is very useful, but it also take a lot of space in your database. Here is a very handy SQL query that will instantly delete all posts
1542 readersBy default, WordPress automatically converts all links from the post content to nofollow. If you prefer your links to be dofollow, just read and use the following recipe.Looking for WordPress hosting? Try WP Web Host. Prices starts at $5/month and you can try it for free!How to automatically remove the Nofollow from your posts
1669 readersFor some reason, you may want to be able to automatically display a custom text below each of your posts. You can hard-code it, but it will be way better to do so using a WordPress hook. Here's how to do.Looking for WordPress hosting? Try WP Web Host. Prices starts at $5/month and you can
1183 readersFor some reason, your WordPress blog can send some info to external sources, as such as AUtomattic, the company behind WordPress. Although you don't really have to worry about it in my opinion, you can block those requests with the following technique.Looking for WordPress hosting? Try WP Web Host. Prices starts at $5/month and you
1641 readersFor each uploaded image, WordPress lets you enter a caption to describe the file. This is very cool, but sometimes you don't need captions at all. Here is how you can get rid of it.Looking for WordPress hosting? Try WP Web Host. Prices starts at $5/month and you can try it for free!How to disable
310 readersDo you ever wished to be able to modify the excerpt length based on which category you are on, without modifying your theme files? If yes, I'm pretty sure you'll be happy with that recipe.Looking for WordPress hosting? Try WP Web Host. Prices starts at $5/month and you can try it for free!WordPress tip :
2144 readersIf you're using PDF files on your WordPress blog, it could be very cool to give your users the chance to open them using Google Docs. The following recipe will show you how you can do that.Looking for WordPress hosting? Try WP Web Host. Prices starts at $5/month and you can try it for free!WordPress
4,108
Curious what others are searching for? Below are the most popular search terms over the last 30 days.

