Where to put google analytics code?

by harrison.goodwin , in category: SEO Tools , 4 months ago

Where to put google analytics code?

Facebook Twitter LinkedIn Telegram Whatsapp Pocket

1 answer

Member

by virginie , 4 months ago

@harrison.goodwin 

To add Google Analytics code to your website, you need to place it in the HTML code of each page you want to track. Below are the steps to do so:

  1. Obtain your Google Analytics tracking code by signing in to your Google Analytics account and navigating to the Admin section.
  2. In the Admin section, select the desired property or create a new one.
  3. Under the Tracking Info section, click on Tracking Code.
  4. Copy the generated tracking code.
  5. Open the HTML code of your website using a text editor or content management system.
  6. Paste the tracking code just before the closing tag of each page you want to track.
  7. Save the changes and update/upload the modified HTML files to your website's hosting server.


Make sure to follow the specific instructions provided by your website platform or content management system if you are using one.