Google Analytics is a platform that collects data from your websites and apps to create reports that provide insights into your business.
Below are instructions on how to manually add your Google tag in Google Analytics. If you’re using a website builder or CMS like Wordpress, Shopify, or Wix, learn how to Install your Google tag with a website builder or CMS.
Note: If you use both Google Ads and Google Analytics, you'll only need to set up your Google tag in one platform. You can add the other product as a destination when you configure your Google tag settings.
On this page
- Before you begin
- Where is my Google tag ID in Google Analytics?
- Steps to set up your Google tag in Google Analytics
- Next steps
Before you begin
You must have access to your website code and Google Analytics property.
Where is my Google tag ID in Google Analytics?
How to find your Google tag ID and use it for website tracking
For subtitles in your language, turn on YouTube captions. Select the settings icon at the bottom of the video player, then select "Subtitles/CC" and choose your language.
- Go to Google Analytics.
- Sign in to your Google Account.
- In Admin, under Data collection and modification, select Data Streams.
- Note: The previous link opens to the last Analytics property you accessed. You can change the property using the property selector. You must be an Editor or above at the property level to open your Google tag settings.
- Select the data stream that you want to edit.
- Under Google tag, click Configure tag settings.
- Under Your Google tag, click the Google tag.
- Under Tag details, copy the Google tag ID.
Steps to set up your Google tag in Google Analytics
- Sign in to your Google Analytics account.
- In Admin, under Data collection and modification, select Data Streams.
- Note: The previous link opens to the last Analytics property you accessed. You must be signed in to a Google Account to open the property. You can change the property using the property selector. You must be an Editor or above at the account level to edit a data stream.
- Select the data stream that you want to edit.
- Under Google tag
- Navigate to the Google tag tab and select Configure tag settings.
- Under the Configuration tab, click Installation instructions in the Your Google tag section.
- Click Install manually to install the Google tag with gtag.js in your website code.
- If you use a website builder or CMS like Wordpress, Shopify, or Wix, refer to Install your Google tag with a website builder or CMS.
- Next to the code snippet, click to copy the code to your clipboard.
- Paste the entire tag snippet in the code of every page of your website, immediately after the
<head>
element. Don’t add more than one Google tag to each page. - In the Test your website section, enter your website URL and click Test.
Next steps
It may take up to 30 minutes for data collection to start. After data collection has started, verify your Google tag.