Web Hosting Geeks | Web Hosting Experts
Need help? Call us 1(866)TOP-HOST

14361 reviews 1715 hosting providers

Questions & Answers

How to add Google analytics to my WordPress Site ?

Mar 4, 2013 by DinoGuy

I have set up Google Analytics and now I want to add it to my wordpress site, but I am not sure how. Can anyone please  help?

2 Answers

0 votes
Mar 4, 2013 by tareq101
add this code to your functions.php file
    add_action('wp_footer', 'add_googleanalytics');
    function add_googleanalytics() { ?>
    // your Google Analytics code goes here
    <?php } ?>
0 votes
Mar 4, 2013 by expert