How to set up Google tag manager

Setting up Google Tag Manager (GTM) involves several steps to ensure that you can efficiently manage and deploy various tracking codes and tags on your website. GTM allows you to add and update these tags without having to modify your website’s code directly.

Here’s a starting guide on how to set up Google Tag Manager to help you get started:

1. Sign Up for Google Tag Manager: #

If you haven’t already, go to the Google Tag Manager website ( and sign in with your Google account. Create a new account if necessary.

2. Create a Container: #

A container is a virtual container that holds your tags, triggers, and variables. Think of it as a workspace for managing your tracking codes. Follow these steps to create a container:

  • Click on the “Create Account” button.
  • Provide a name for your container. This is usually the website’s name.
  • Choose the target platform (Web, AMP, iOS, Android) for your container. For most websites, you’ll choose “Web.”

3. Set Up the Container on Your Website #

After creating a container, you’ll need to add its code to your website. This code is usually placed in the <head> section of your site’s HTML code. Follow these steps:

  • In GTM, click on your container, then click “Install Google Tag Manager.”
  • You’ll see two code snippets: one for the <head> section and the other for the <body> section. Copy the code for the <head> section and paste it into every page of your website, right after the opening <head> tag.

4. Add Tags to Your Container #

Tags are snippets of code that track specific actions on your website. Common examples include Google Analytics tags, Facebook Pixel, etc. Here’s how to add a tag:

  • In your container, click on “Tags” in the left sidebar.
  • Click the “+ New” button to create a new tag.
  • Choose the tag type (e.g., Google Analytics, Facebook Pixel, Custom HTML, etc.).
  • Configure the tag settings according to the instructions provided by the service you’re integrating.

5. Configure Triggers: #

Triggers determine when your tags should fire. For instance, you might want a tag to fire when a user clicks a specific button or lands on a certain page. Here’s how to set up triggers:

  • In your container, click on “Triggers” in the left sidebar.
  • Click the “+ New” button to create a new trigger.
  • Choose the trigger type that matches the action you want to track (e.g., Page View, Click, Form Submission, etc.).
  • Configure the trigger settings based on your requirements.

6. Publish Changes #

Once you’ve added tags and triggers, it’s important to publish your changes to make them live on your website:

  • In GTM, click the “Submit” button in the upper-right corner.
  • Add a version name and description to help you identify the changes.
  • Click “Publish.”

7. Test Your Setup #

After publishing, it’s crucial to test your setup to ensure that the tags are firing correctly and tracking the intended actions.

8. Ongoing Management #

As your tracking needs evolve, you can continue to add, modify, and remove tags within GTM without needing to modify your website’s code directly. Always remember to publish changes when you’re ready to make them live.

Ready to Take Your Marketing to the Next Level?

Supercharge your marketing campaigns and drive more clicks and conversions with TLinky’s URL shortener, QR code generator, Bio page builder and link management tools. Start optimizing today!

Remember that this is a starting guide, and Google Tag Manager can offer more advanced features and functionalities. Make sure to consult the official GTM documentation for detailed instructions and troubleshooting tips.

What are your feelings
Updated on February 24, 2024