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/

12 Comments
  1. Maria O'Shanahan 4 days ago
    Reply

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

  2. kalaivani rajkumar 4 days ago
    Reply

    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 4 days ago
    Reply

    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 4 days ago
    Reply

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

  5. Hi Tech Plastics Engineering 4 days ago
    Reply

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

  6. Abal Amour 4 days ago
    Reply

    Hello.

    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 4 days ago
    Reply

    very informative. thanks buddy

  8. Yonan Mitsubishi 4 days ago
    Reply

    Clicking to fast so its hard to understand

  9. Efraín Fernando López De Castilla Achata 4 days ago
    Reply

    Thanks for making it entertaining and short! Awesome video.

  10. zadius100 4 days ago
    Reply

    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 4 days ago
    Reply

    Nice.

  12. I'm your boss babe 4 days ago
    Reply

    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