Adding Google Analytics in Wordpress

How do we add Google Analytics to Wordpress?
LVL 1
Thomas BernalDirector of SalesAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Kapil SharmaTech Geek :)Commented:
Just login to wp-admin then from left menu, go to Apperance > Editor
then from right side menu click on Theme Header and add Google analytics code before </head> tag.
0
Thomas BernalDirector of SalesAuthor Commented:
After going to Apperance> Editor this is what I see. Should I see Theme Header, or is that the same as header.php
Screen-Shot-2018-04-25-at-12.28.13-P.png
0
Kapil SharmaTech Geek :)Commented:
Is there any other Header file, or check </head> tag in files available.
0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

Thomas BernalDirector of SalesAuthor Commented:
Do not see any other Header file or </head> tag in files.
0
Kapil SharmaTech Geek :)Commented:
it should be. You can also add this code to footer.php before the </body> closing tag.

Another way is via FTP. Do you have the access of FTP where the site is uploaded.

Check this video to add GA code to header or footer file.
https://www.youtube.com/watch?v=DpRwouxW334
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Janvi AroraDigital Marketing ConsultantCommented:
You can add Google Analytics in WordPress in following ways:
1. Paste Google Analytics code just before closing Head tag in Header file.
To access header file, you have to click on Appearance -> Editor -> Theme Header on the Right Hand menu -> Header File
2. You can use plugins and it will do the work for you.
Install the plugin via WordPress, Activate the plugin, Navigate through left hand side bar where you find installed plugin. Authenticate via Google, copy and paste the access code and choose your property from the dropdown. You can also paste the code manually. Your WordPress site is linked to Google Analytics.
3. You can paste the Google Analytics code in main file using FTP Server.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Google

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.