Setting Up Google Tag Manager
Step-by-Step Guide to Setting Up Google Tag Manager
​
-
Create a Google Tag Manager Account
-
Go to Google Tag Manager.
-
Click on "Create Account."
-
Enter your account name and select your country.
-
Click "Continue."
-
-
Set Up a Container
-
Enter a container name (usually your website name).
-
Select "Web" as the target platform.
-
Click "Create."
-
Review the terms of service and click "Yes" to accept.
-
-
Install the Tag Manager Snippet
-
After creating the container, you will see two pieces of code.
-
Copy the first code snippet and paste it into the <head> section of your website's HTML, ideally right after the opening <head> tag.
-
Copy the second code snippet and paste it into the <body> section of your website's HTML, right after the opening <body> tag.
-
-
Publish Your Container
-
Go back to Google Tag Manager and click "Submit" in the top right corner.
-
Provide a version name and description (optional).
-
Click "Publish."
-
-
Verify Installation
-
To verify that Google Tag Manager is working, open your website in a browser.
-
Right-click on the page and select "Inspect" (or press Ctrl+Shift+I on Windows/Linux or Cmd+Option+I on Mac).
-
Go to the "Console" tab and look for a message confirming that Google Tag Manager is loaded.
-
-
Add Tags, Triggers, and Variables
-
In Google Tag Manager, click on "Add a new tag."
-
Configure your tag (e.g., Google Analytics, Facebook Pixel).
-
Set up the trigger to define when the tag should fire (e.g., on page view).
-
Save your tag.
-
-
Test Your Setup
-
Use the "Preview" mode in Google Tag Manager to test your tags before publishing.
-
Click "Preview," then navigate to your website to see how tags are fired.
-
-
Publish Changes
-
After testing, go back to Google Tag Manager and click "Submit" to publish any changes.
-
​
By following these steps, you can successfully set up Google Tag Manager on your website, allowing you to manage and deploy marketing tags without modifying the site’s code directly.