LOGIN LOGIN Book Now Book Now

How to Setup Google Tag Manager (GTM)

A Step-by-Step Guide to GTM for any Website


Step 1: Create a Google Tag Manager Account

  1. Visit tagmanager.google.com
  2. Click "Create Account"
  3. Enter the following details:
    • Account Name (typically your business name)
    • Country
    • Container Name (usually your website URL)
    • Choose "Web" as the target platform
  4. Click "Create" and accept the Terms of Service


Step 2: Get Your GTM Installation Code

  1. After account setup, GTM will generate two code snippets:
    • One for the <head>
    • One for the <body>
  2. Copy both snippets. These will be inserted into your website's code.


Step 3: Install GTM Code on Your Website

For a Standard HTML Website

  • Paste the <head> code immediately after the opening <head> tag
  • Paste the <body> code immediately after the opening <body> tag

For WordPress (Without a Plugin)

  1. Go to Appearance > Theme File Editor
  2. Open the header.php file
  3. Paste:
    • The <head> code before the closing </head> tag
    • The <body> code directly after the opening <body> tag

For WordPress (With a Plugin)

  1. Install a plugin like "Insert Headers and Footers"
  2. Go to Settings > Insert Headers and Footers
  3. Paste:
    • The <head> code in the Scripts in Header section
    • The <body> code in the Scripts in Body section
  4. Save changes

For Shopify

  1. Go to Online Store > Themes > Edit Code
  2. Under Layout, open theme.liquid
  3. Paste:
    • The <head> code before the </head> tag
    • The <body> code after the opening <body> tag

For Wix

Wix doesn't allow manual code insertion into <body>, but you can still integrate GTM via settings.

  1. Go to Settings > Custom Code
  2. Add a new custom code and paste the <head> snippet
  3. Apply to All Pages and position it in the Head
  4. Save and publish


Step 4: Verify Installation

  1. Open Google Tag Assistant
  2. Enter your website URL and start a test session
  3. Look for a confirmation that Google Tag Manager is active


Step 5: Start Using GTM to Add Tags

Once GTM is installed, you can manage all your tracking tags from the dashboard.

To add a tag:

  1. Go to Workspace > Tags > New
  2. Choose a Tag Type (e.g. Google Analytics: GA4, Facebook Pixel)
  3. Configure your tag and set a Trigger (e.g. All Pages, Button Clicks)
  4. Save and Submit the tag to publish it

USEFUL TIP:

Use Preview Mode to Test Before Publishing

Use GTM’s built-in Preview feature to test your tag configurations before going live.


Need more help with Google Tag Manager?

Talk to an expert at Ranking Australia, we don’t just install Google Tag Manager — we transform it into a powerhouse for your business insights. From conversion tracking to remarketing integrations, we ensure that your digital performance is fully measurable and aligned with your goals.

Need help with implementation? Our team of Google Experts can install, test, and optimise GTM for your site.

Your success is our success.

Contact us
Contact us


Talk to us about Google SEO Services & Marketing Support

Real Content Advice. Real Results. Real-time Local SEO Services.

This is the perfect starter program to get access to Google Local SEO services for your website and helping you get found on Google.  We work with you and your team to help you and your business grow.

Request a Callback

Get a callback from one of our Local SEO & Google Marketing Experts today.

I want to find out more about...

Callback Time Preference
What would you like to achieve with our help?
Terms & Conditions

Click here to view Terms & Conditions

Get Optimised & Get Found on Google Today

Get discovered on Google. Meet with our Chief Google Business Specialist Katrina Puranik to explore the power of Google and how we can help your business. 

GET STARTED NOW GET STARTED NOW
REQUEST A CALLBACK
REQUEST A CALLBACK

Check out Oncord - Your Wesbite Marketing Platform

Oncord - Website Marketing Platform