The Creative Solution to Insert Google Analytics on WordPress


Sponsored Links




Every Blogger need stats, there are so many stats tools available on the net. My Favorite stats tools is WordPress Stats and Google Analytics, On this trick we will show tricks how to added Google Analytics into yours wordpress blog, with unique ways. We will added a few line of code on functions.php in your themes and done.

<?php
add_action('wp_footer', 'ga');

function ga() { ?>
    // Paste your Google Analytics code here
<?php } ?>

Please note, your theme should have wp_footer() to make it work. If you want put your Google Analytics code on the header you can change wp_footer into wp_head. This code original writen by WP Recipes

Subscribe to Full RSS Feed

RSS FeedIf you thing this article useful, please consider subscribing to our RSS Feed or e-mail updates and stay updated with us. You can also follow @WPTricksNet on twitter for latest updates.

About WP Tricks

We are WordPress Family, we collected and writed useful tips and tricks for you WordPress. We share it for you...

Related Tips and Trick from Local Data and on The Net

Google Analytics Official Website - Web Analytics & Reporting

Google Analytics lets you measure your advertising ROI as well as track your Flash, video, and social networking sites and applications. Read More

How To Prevent WordPress Admin To Be Tracked By Google Analytics

How To Insert Google Analytics On Your WordPress Blog Without Editing Your to work from various places, so your solution creative objects; does jewlery sell well on Read More

Introduction - Analytics Help - Google

Google Analytics use Google Analytics to track your pages on Facebook, MySpace, WordPress solution you've already deployed. You can try running Google Analytics on a Read More

How To inserting Google Maps into WordPress / WordPress Tricks & Tips

Pingback: 20 WordPress Theme Hacks to replace the need for Plugins | JC. Pingback: The Creative Solution to Insert Google Analytics on WordPress | WordPress News Wire Read More

Creative Digital Media Solutions | Right Brain Logic

After much trial and error, I came across a solution about time to start a new support group – WordPress you’ve completed the basic setup of your Google Analytics Read More


2 Responses to The Creative Solution to Insert Google Analytics on WordPress

  1. I have seen a lot of coding on the net based on Google and WordPress, and I have heard of a lot of viruses hidden within that coding. I looked over your small bit of code and it’s obviously clean, but I wanted to let others know to always be on the lookout for suspicious code.

  2. Pingback: How To Integrate Google Font Directory on WordPress Theme | Jhez3R

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>