add google analytics to wordpress site

Simply Open your function.php file of activated theme and put this code at the end of the file with your google analytics code. For more details: Beginner’s Guide to Installing Google Analytics in WordPress