How do I install the Google tag on my website?

Installing the Google tag (also known as gtag.js or the Global Site Tag) on your website is the foundational step for tracking conversions in Google Ads and measuring activity in Google Analytics.

Google Tag Manager is a container that holds all your individual tags (Google Ads, Analytics, Facebook Pixel, etc.). You install the GTM code once, and then manage all other tags within the GTM interface, without needing a developer for every change.

Step 1: Create a GTM Account and Container

  1. Go to the Google Tag Manager website.

  2. Sign in with your Google Account.

  3. Click Create Account and enter an account name (usually your company name).

  4. Create a Container for your website.

  5. Select Web as the Target Platform and click Create.

  6. Agree to the Terms of Service.

Step 2: Install the GTM Container Code

After creating the container, a pop-up window will display two code snippets. These are the only pieces of code you should need to manually add to your website.

  1. Code Snippet 1 : Copy the first snippet and paste it as high up as possible in the <head> section of every page on your website.

  2. Code Snippet 2 : Copy the second snippet and paste it immediately after the opening <body> tag on every page of your website.

  • CMS Users (WordPress, Shopify, etc.): If you use a Content Management System (CMS), you often have a simpler option:

    • Plugins (WordPress): Use a dedicated plugin like GTM4WP, which only requires you to enter your GTM Container ID (e.g., GTM-XXXXXXX).

    • Theme/Admin Settings: Many themes or website builders (like Shopify, Wix) have a dedicated field in the theme editor or settings to paste tracking codes into the header.

Step 3: Add the Google Tag within GTM

Once the GTM container code is installed on your site, you add the Google Tag inside the GTM interface:

  1. Go back to your GTM Workspace.

  2. Click Add a new tag.

  3. For Tag Configuration, select Google Tag.

  4. Enter your Google Tag ID (found in your Google Ads or Analytics account).

  5. For Triggering, select All Pages.

  6. Save and Publish the GTM container.


Last Updated 2nd February 2026.

Was this article helpful?

We publish our Knowledge Base to help individuals and businesses resolve common issues across websites, advertising platforms, Salesforce and other digital systems.

We regularly review and update our guides, but the platforms, software and services covered can change without notice. As a result, screenshots, settings, features or recommended processes may differ from those available when an article was last reviewed.

The information provided is general guidance and should not be treated as advice specific to your systems or circumstances. UTDS Optimal Choice cannot accept responsibility for errors, data loss, service disruption or other issues resulting from changes made by following these guides.

If you are unsure about any of the steps, particularly where a change could affect live systems, data, tracking or business processes, we recommend speaking to us before making the change. Our team can review your specific setup and provide advice based on the current platform and configuration.

Time for some professional support?

Our team area ready to help. As one of the few digital agencies that is a registered Salesforce Consulting Partner and Google Partner Agency, UTDS Optimal Choice is expertly positioned to support you across your entire digital landscape.