Analytics
2.9K members online now
2.9K members online now
Dive into multiple domain (Cross/Sub) tracking, implementing Ecommerce and Enhanced Ecommerce, setting up Event tracking, and Universal Analytics code.
 
Guide Me
star_border
Reply

Where to add google analytics code?

Visitor ✭ ✭ ✭
# 1
Visitor ✭ ✭ ✭

Hi,

 

I want to add google analytics code to my website, google says to add into the <head> section. 

 

But where and how do i find the <head> section to edit?

 

Pls advise, thanks!

1 Expert replyverified_user

Re: Where to add google analytics code?

Top Contributor
# 2
Top Contributor
Hi, Xing T,

If you view the source of your page (Ctrl-u) and search for <head>, this will locate that section of your webpage. You need to place the tracking code inside the opening <head> tag and closing </head> tag. Anywhere will do so long as it's within that section.
Nicky Yuen, Google Analytics Top Contributor
Was my response helpful? If yes, please mark it as the ‘Best Answer.’ Learn how here.
Find me on: Google+ | LinkedIn

Re: Where to add google analytics code?

Visitor ✭ ✭ ✭
# 3
Visitor ✭ ✭ ✭
Hey Nicky,

I managed to locate the section of <head>, but how do I paste the code?

How do I edit the source code?

Thanks

Re: Where to add google analytics code?

Visitor ✭ ✭ ✭
# 4
Visitor ✭ ✭ ✭
if you are not developer, you ask the developer to add the code

if you use wordpress, you can link your site to google analytics from admin panel