Category: Tech

Google Analytics Tracking Code

  1. Log in to your Google Analytics account
  2. On left-hand side of the page, click Admin
  3. From the left column named Account, select an account from the dropdown menu
  4. From the middle column named Property, select a property from the dropdown menu
  5. Under the Property tab, now click on Tracking Info and Tracking Code
  6. Your website’s unique tracking ID is generated and shown at the top of the page under Tracking ID and it starts with UA

Once you’ve identified your tracking ID, you’ll got to get your tracking code snippet, which may be found on this page because the Global Site Tag (gtag.js). The gtag.js is that tracking code for this specific property and you’ll got to copy and paste this code to each webpage you would like to trace on your website.

To copy and paste your gtag.js, continue on these steps:

  1. Copy the gtag.js shown on the page (example shown below)Google Analytics Global Site Tag
  2. Replace the GA_TRACKING_ID together with your unique tracking ID provided by Google Analytics
  3. Paste the code snippet right after the <head> tag on each page of your site that you’d like to track in Google Analytics

SOURCE: Google Images

Thanks for reading this text. This story is about "How to add Google Analytics Code to your Website" and last modernize on Thursday, January 5, 2023. I'm sure your visit to us must be quite satisfying and in line together with your expectations from us.

About the author

I am a WordPress Developer and over the last three years, I've worked over 15+ projects including Custom Theme Development. I am skilled in WordPress, HTML, jQuery, Drupal and mySQL. I enjoy traveling, eating my way around the world, and sharing experiences on my blog! Outside of work, I attain knowledge from Udemy classes. I am going through various youTube Tech channels and learn something about new technologies a day. Also I like meeting new people over a cup of coffee. Please feel free to contact me at info@webdroyd.com