Công Nghệ

Google Analytics Tracking Code in HTML: Where to Put It

I’ll show you where to place a Google Analytics code in an HTML page and how to test if it worked.

Lastly, let’s take a look how to install Google Analytics code on HTML page. I’ll use cPanel’s file manager, but you can also use an FTP software like FileZilla. Most hosting providers have cPanel so you should be good.

1. Im now in my cPanel dashboard.
2. Just click on File Manager
3. And then locate your html file
4. Then right click on the file and choose “edit”.
5. Here we have an HTML code for simple page, just find the closing head tag, like this one.
6. Then switch back to the tab with analytics
7. And copy the whole code snippet.
8. And paste it just above head closing tag.
9. Let me make it a bit easier to read by selecting the whole thing and pressing tab few times.
10. And don’t forget to save the file here at the top.

11. Now, go back to Analytics and press on “Send test traffic”. Or you can open an incognito window with your website.
12. After few sections it should show that there is one active user on your website right now.

Now keep in mind, what you have now is default installation of GA, it’s pretty good for most people but for example, if you have an e-commerce website it’s better that you setup enhance e-commerce. So you can track your revenue and orders in Google Analytics. A video for enchanced ecommerce will appear on your screen now.

My website setup recommendations:

Support the channel:
on Amazon:
PayPal tip jar:

Nguồn: https://monywa.org

Xem thêm bài viết khác: https://monywa.org/cong-nghe/

  1. Maria O'Shanahan 1 year ago

    Thanks for the tutorial Robert…very quick and easy to follow. Worked perfectly.

  2. kalaivani rajkumar 1 year ago

    You put the code in new file testing page.HTML or already available html file ?where i can put my tracking code.i saw your video for 20times.pls help me on this.

  3. Luis Manuel Santos Buccella 1 year ago

    thanks for the info man. Is it possible to add the GA tracking in a third party webpage? if yes how can we do that? thanks

  4. Ankit Khatri 1 year ago

    your video is too fast, i did not understand, that is why you have less views, Improve!!

  5. Hi Tech Plastics Engineering 1 year ago

    hey i am getting issue in my google anayltics not reciving hits what should i do

  6. Abal Amour 1 year ago


    I hope you are doing well.

    My company is looking for people with some coding experience to hire. Will you be interrested in creating a small project ?

  7. Farrukh Hamayoun 1 year ago

    very informative. thanks buddy

  8. Yonan Mitsubishi 1 year ago

    Clicking to fast so its hard to understand

  9. Efraín Fernando López De Castilla Achata 1 year ago

    Thanks for making it entertaining and short! Awesome video.

  10. zadius100 1 year ago

    Good dude, I was searching for someone who teach me that in less of 3 minutes!!!, theres a lot o users who use 16 minutes teaching the same thing as you, thanks!

  11. Eskimoz 1 year ago


  12. I'm your boss babe 1 year ago

    Robert is there a free way to check monthly volume for keywords keyword planner suck

Leave a Comment

Your email address will not be published.

You may also like