You can directly paste the google analytics code in your header.php or footer.php file which is present in your theme and it will work throughout the site.
You can directly paste the google analytics code in your header.php or footer.php file which is present in your theme and it will work throughout the site.