You are here
Home > Php > Adding Google Analytics Code in WordPress Website

Adding Google Analytics Code in WordPress Website

Hello Friends today I am going to share how to add google analytics code on your wordpress website using hooks in functions.php, To do so you can use wp_head hook. The wp_head action hook is triggered within the <head></head> tag. You can also use lots of available plugins but that makes your website heavy so for small features/functionality it is better to use fuctions.php.

So here is the code

Thanks 🙂

Please share if you like it

 

Rajesh Kumar Sahanee
I am a passionate Java Developer and I like Computer Programming. I love to do some interesting experiments and listening music in my free time.
http://www.zatackcoder.com

Comments

zatackcoder
Top