Install Google Tag Manager on a WordPress site (2026)
What you’ll have at the end
Google's Site Kit plugin on your WordPress site, connected to your Google Tag Manager container, with Site Kit placing the Tag Manager code on your site. You then add and manage your tags in Tag Manager itself.
Before you start
You’ll need
- A WordPress site, and a sign-in that lets you install plugins
- A site that is public, not in maintenance mode or behind a password
- A Google Account to use with Site Kit and Tag Manager
What it costs. Google's help says the Site Kit by Google plugin is free to use, and Site Kit's help calls Google Tag Manager a free tag management system.
This guide uses Site Kit by Google, Google's own WordPress plugin. Site Kit's help says it places the Tag Manager code on your site for you, so you don't need to edit your site's code.
Google's help asks that your site is publicly reachable before you start: not in maintenance mode, and not behind a password. If you can't install plugins on your WordPress site, Google's help points to adding the code with the WordPress theme editor instead, which this guide doesn't cover.
You don't need a Tag Manager account first. Site Kit's help says you can create one, or a new container, during setup.
If Site Kit is already installed and set up on your site, skip to step 8.
Following steps from somewhere else? You’re welcome to bring them here.
Steps
1. Log in to WordPress
Log in to your WordPress website.
2. Click Plugins, then Add New
In the left menu, click Plugins, then select Add New.
3. Search for "Site Kit by Google"
In the plugin search, type "Site Kit by Google".
4. Click Install Now
Under the "Site Kit by Google" plugin, click Install Now.
5. Click Activate
When it's installed, click Plugins in the left menu, then Installed Plugins. Under "Site Kit by Google", click Activate.
6. Click Start setup
Click Start setup.
7. Sign in with Google and finish Site Kit setup
Click Sign in with Google and follow Google's screens to finish setting up Site Kit. Google's help lists screens such as choosing your Google Account, Proceed to verify that you own the site, Allow to give Site Kit access, and Add site to add the site to Search Console.
8. Open Site Kit > Settings
In the left menu, select Site Kit, then click Settings.
9. Click Connect More Services
Click Connect More Services.
10. Click Set up Tag Manager
Find Tag Manager and click Set up Tag Manager.
11. Choose your Tag Manager Account
In the Account drop-down, choose your Tag Manager account. Site Kit lists the accounts for the Google Account you signed in with.
If you don't have one, choose Create an account. Site Kit's help says this takes you to Tag Manager to create it. Then come back and click Re-fetch My Account to see it in the list.
12. Choose your Container
In the Container drop-down, choose your container, or choose Set up a new container to have Site Kit create one for you.
13. Click Complete setup
Click Complete setup. Site Kit's help says it then takes you to the dashboard with a "Successful setup" banner for Tag Manager. This guide ends here.
If something looks different
- Google's help says Add New is at the top of the Plugins page. If the wording differs on your version of WordPress, use the button there that adds a new plugin.
- To check that Site Kit is placing the code, go to Site Kit > Settings > Connected Services > Tag Manager > Edit. Site Kit's help says Let Site Kit place code on your site should be on. If you turn it off, you'll need to add the code yourself.
- If you've connected Google Analytics or Google Ads through Site Kit, Site Kit's help asks you to be careful about adding the same tags again in Tag Manager, as it can affect your tags or reports.
- To add the code by hand instead, Google's Tag Manager help says to open your container in Tag Manager, click Install Tag Manager or your container ID, choose Install Manually, and paste the first block of code as high in the
<head>as possible. That dialog also offers a Test button for your website's address.
Related guides
Sources
- Tag Manager - Site Kit by Google
- Site Kit plugin (WordPress): Set up your Google tag - Tag Manager Help
- 2. Install a web container - Tag Manager Help
Alongrail isn't affiliated with Google or WordPress.