How to install Google Tag Manager on your website
Google Tag Manager lets you add tracking and marketing tags to your website without editing code every time. Here's how to set it up properly.
Quick answer
Install Google Tag Manager by creating a free account at tagmanager.google.com, creating a container for your website, and pasting two snippets of code into your site (most builders have a one-field input for the container ID). Once installed, you manage tags (Google Analytics, Facebook Pixel, conversion tracking, etc.) through the GTM interface without editing your site. For most small businesses, GTM is overkill unless you're running paid ads or complex tracking — Google Analytics installed directly is usually enough.
Step-by-step
- 1
Decide if you actually need GTM
Google Tag Manager is powerful but adds complexity. Three signs you actually need it. You're running paid ads (Google Ads, Facebook Ads, LinkedIn Ads) and need conversion tracking. You're tracking complex events (button clicks, scroll depth, video plays) that simple Analytics doesn't cover. You have multiple tracking tools (Analytics, Facebook Pixel, Hotjar, etc.) and want to manage them in one place. If none of these apply, install Google Analytics directly and skip GTM. Most simple service business websites don't need GTM.
- 2
Create a Google Tag Manager account
Go to tagmanager.google.com and sign in with a Google account (use a permanent business account, not personal). Click 'Create Account'. Enter your business name and select your country. Create a container — name it your website domain, select 'Web' as the platform, click Create. GTM generates a Container ID (GTM-XXXXXXX) and shows you two code snippets: one for the head and one for the body of every page on your site.
- 3
Install on a modern website builder
Adviita: paste your Container ID in the GTM field under Site Settings > Integrations. Done. Wix and Squarespace: Settings > Advanced > Custom Code, paste the head snippet in the head section and the body snippet in the body section. Shopify: Online Store > Themes > Customize > theme.liquid, paste snippets in the appropriate locations. Most builders take 5 minutes max. The Container ID is the easier method when available.
- 4
Install on WordPress
Two methods. Plugin: install 'GTM4WP' or 'Site Kit by Google' (both free), enter your Container ID, save. Manual: edit your theme's header.php and footer.php files, paste the GTM snippets in the right locations. Plugin method is recommended unless you specifically need control over placement. Either way: paste both snippets, save, verify on your site.
- 5
Verify GTM is working
Open your website in Chrome. Install the 'Tag Assistant Companion' Chrome extension (free, by Google). Visit your site — Tag Assistant should detect your GTM container. Alternatively, install 'GTM/GA Debugger' extension. In GTM itself, click 'Preview' mode — this opens a window that shows you exactly which tags are firing on each page. Don't move on to adding tags until Preview mode confirms GTM is installed correctly.
- 6
Set up your first tag (Google Analytics)
Most users install GTM specifically to manage Google Analytics. In GTM, click Tags > New > Tag Configuration > Google Analytics: GA4 Configuration. Enter your Measurement ID (G-XXXXXXXXXX from Google Analytics). Set the trigger to 'All Pages'. Save the tag, then click Submit in the top right of GTM and publish the container. Within 5 minutes, Google Analytics should start showing data for your site.
- 7
Add conversion tracking for paid ads
If you're running Google Ads, install conversion tracking via GTM. In Google Ads > Tools > Conversions, create a new conversion (e.g., form submission). Google provides a Conversion ID and Conversion Label. In GTM, create a new tag: Google Ads Conversion Tracking, enter both IDs. Set the trigger to fire when a specific event happens (form submission, thank-you page visit). Test in GTM Preview mode before publishing. Same pattern for Facebook Pixel and other ad platforms.
- 8
Don't go tag-crazy
GTM makes adding tags easy — too easy. Common mistake: installing 10+ tags 'because they might be useful', slowing your site and complicating data analysis. Add only the tags you actively use: Google Analytics, conversion tracking for ads you're actually running, maybe one event-tracking tag for critical buttons. Audit your tags every 6 months and remove anything you're not actively using.
Tips & best practices
- ▸GTM Preview mode is your best friend. Always preview tag changes before publishing — half of GTM issues are caught by Preview mode that would otherwise break tracking silently.
- ▸Use descriptive tag names ('GA4 - All Pages', 'Google Ads Conversion - Contact Form') rather than the defaults. In 6 months you'll have 10 tags and need to remember what each does.
- ▸Cookie consent applies to GTM tags too. Configure GTM to respect your cookie consent tool — non-essential tags should only fire after user consent.
Common questions
Do I need Google Tag Manager?
+−
Only if you're running paid ads, tracking complex events, or managing multiple tracking tools. For a simple service business website with just Google Analytics, install Analytics directly without GTM.
Does Google Tag Manager slow my website?
+−
Slightly. GTM adds one script that loads tags asynchronously. The impact is usually under 100ms. The bigger speed risk comes from the tags you add to GTM — too many tracking tags slow any site. Use GTM sparingly.
Can I use GTM with Adviita?
+−
Yes. Adviita supports GTM via a single Container ID field — paste your GTM-XXXXXXX ID and Adviita handles installation. No code editing required.
What's the biggest mistake with GTM?
+−
Adding tags without testing in Preview mode first. Tags can break each other, fire on wrong pages, or send incorrect data — Preview mode catches all of this before publish. Always preview, always test, then publish.