Install your Google tag with a website builder or CMS

Note: The global site tag (gtag.js) is now the Google tag. With this change, new and existing gtag.js installations will get new capabilities to help you do more, improve data quality, and adopt new features – all without additional code. Learn more About the Google tag.

You can use a website builder or content management system (CMS) to finish setting up your Google tag automatically, or you can install your tag manually. To ensure you get accurate measurement, make sure your tag is installed on every page of your site.

How to Set Up Google Tag with Shopify, WordPress, Wix

For subtitles in your language, turn on YouTube captions. Select the Settings icon Image of YouTube settings icon found in the video player, then select Subtitles/CC and choose your language.


On this page


Before you begin

Some website builders and CMS platforms don't provide integrated support for the Google tag. These platforms may not accept every tag ID format.

If you can’t find your platform in the list below, you can install your Google tag manually.

Learn more about how to Set up your Google tag across your Google accounts.


Step 1 of 2: Find your Google tag installation instructions

To install the Google tag, you need to find your installation instructions. You can find the instructions by following these steps, depending on your platform:

Google Analytics

  1. In your Google Analytics account, go to the Admin.
  2. In Data streams, choose a stream to see details.
  3. Select View tag instructions.

Google Ads

  1. In your Google Ads account, select Tools IconTools .
  2. Select Data manager.
  3. Under “Google tag”, select Manage.
  4. Next to “Your Google tag”, select Installation instructions.

Step 2 of 2: Choose your platform

Method 1: Set up with a website builder or CMS platform

Click Select your platform and choose your website builder or CMS platform from the list. You can also select your platform in the list below to review platform-specific instructions for installing your Google tag.

When you're done you can choose to test your website with Tag Assistant.

Note: Google Sites doesn’t allow you to set up custom JavaScript into the <head> of your website’s code. Instead, you can use the measurement ID from your Google Analytics property to measure data in your website. Learn how to Use Analytics with your site.

Method 2: Set up your Google tag manually

If your website builder or CMS platform doesn’t have integrated support for Google tag, you can choose to install manually.

Once you find your installation instructions in step 1, follow these steps:

  1. Select Install manually.
  2. Copy the provided Google tag snippet.
  3. Go to your website builder or CMS dashboard.
  4. Find your platform’s custom HTML, header code, or custom code field.
  5. 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. If you have an existing Google tag on the page, you can add multiple destinations to a single tag.
  6. In the “Test your website” section, enter your website URL and select Test.

If you're setting up your Google tag from within your Google Analytics account, there are some additional platforms that accept a Google tag that begins with "G-". Review platforms that accept this tag ID format

Was this helpful?

How can we improve it?
Search
Clear search
Close search
Google apps
Main menu
18287046628470010972
true
Search Help Center
false
true
true
true
true
true
69256
false
false
false
false
false