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

14625 reviews 1734 hosting providers

Questions & Answers

How to add Google analytics to my WordPress Site ?

Mar 4, 2013 by DinoGuy
Hello

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?
Thanks

2 Answers

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