How to Add Google Tag Manager to Your Website
What You’ll Learn
Learn how to locate your Google Tag Manager container and share the required code snippets with your project team to add to your Morweb site.
Why It Matters
Google Tag Manager (GTM) helps you deploy tracking tags—like analytics, advertising, or marketing scripts—without editing code directly on your website. By setting up GTM properly, you can add or update tracking tools quickly and ensure data accuracy across your site.
Step-by-Step Instructions
1. Access Google Tag Manager
- Open your web browser and go to https://tagmanager.google.com.
- Sign in with the Google Account that has access to your organization’s Tag Manager container.
2. Open Your Container
- Once signed in, locate the list of accounts and containers you have access to.
- Click the container name you want to use—for example, the container ID that starts with “GTM-XXXXXX”.
- Ensure you are on the Workspace tab for that container.
3. Copy and Send Your Code Snippets
- In the Workspace, click on the container ID at the top (for example, GTM-XXXXXX).
- A panel appears showing two blocks of code:
- The first code snippet goes in the
<head>
section of every page. - The second snippet goes immediately after the opening
<body>
tag.
- The first code snippet goes in the
- Click the copy icon next to each block to copy them to your clipboard.
- Paste both code snippets into an email or a shared document and send them to your Project Coordinator.
- Your Project Coordinator will open a developer ticket to ensure these code blocks are added to your website’s templates.
Troubleshooting Tips
- I Can’t Sign In to Google Tag Manager
Make sure you’re using the correct Google Account email. If you don’t have access to the GTM account, ask your administrator to grant you permission under “User Management.”
- My Container ID Isn’t Listed
Verify you have the right account selected at the top next to your profile icon. If you still don’t see it, confirm with your team that you’ve been added to the correct GTM container.
- Can’t Copy the Code Snippets
Ensure you’re on the Workspace tab. The copy icons only appear when viewing the container’s installation instructions. If necessary, refresh the page or switch browsers.