How to Add HTML Tags to Your site Using Google Tag Manager

So you probably heard that Google Tag Manager is a great way to manage all of the tags on your website. Here's how to use it with custom code.

Spread the love

So you probably heard that Google Tag Manager is a great way to manage all of the tags on your website, but you probably don’t know how to implement them. I had a lot of trouble when I first learned how to do this.

Normally, you would go into the file managers of your website, take the code, put it in either the header wherever it’s asking you to, and you would do that. But it can be very intensive if you have a ton of tags, and that’s where Tag Manager comes in and simplifies things too.

How to add custom HTML to JS tags to your website in Google Tag Manager

If you’re looking to implement custom HTML and JavaScript tags or just JavaScript tags on your website with Tag Manager, this is how you do it. I’m also assuming you already have an ag manager on your website.

  1. Copy the desired code

    Copy the desired code tag and click new. I will name this Hotjar, which will hide your configuration tag.

  2. Create a new tag

    Go to your container and click New Tag.

  3. Click custom HTML

    Give your tag a name, and then click tag configuration. Scroll down to custom and click on Custom HTML.

  4. Save settings

    Past your HTML or Javascript code (so long as the JS code is wrapped in a <script> tag) and set your trigger to all pages. Click Submit, and give it a version name. Finally, click Publish.

  5. Verify the code

    Verify the code on the desired service to ensure that the code is working.

And now, you can do this for as many tags as you need on your website.

Frequently asked questions (FAQ)

Do you still have questions? Below are some of the most commonly asked questions about Google Tag Manager.

How to add html tags to your website using google tag manager javascript in tag manager thumbnail
How to add html tags to your website using google tag manager javascript in tag manager thumbnail

What is Google Tag Manager?

Google Tag Manager is a free tool that allows you to quickly and easily add tracking and marketing tags to your website without requiring any code changes. You can use it to add tracking for things like page views, clicks, form submissions, and e-commerce transactions.

Is Google Tag Manager free to use?

Yes, Google Tag Manager is a free tool provided by Google. There are no fees or costs associated with using it, and you can use it to manage as many websites as you like.

How does Google Tag Manager work?

Google Tag Manager works by adding a small piece of JavaScript code to your website, which is called the “container” code. You can then use the Google Tag Manager interface to add and manage various tracking and marketing tags, without needing to modify the website’s source code. When a user visits your website, the container code loads the tags that you have configured, which then send data back to the Google Tag Manager servers.

Can I use Google Tag Manager with any website?

Yes, Google Tag Manager can be used with any website, regardless of the platform or CMS it is built on. All you need to do is add the container code to your website and you can then use the Google Tag Manager interface to manage your tags.

Are you a visual learner? Check out my video below, titled “How to Add HTML Tags to Your Website Using Google Tag Manager! ???? Javascript in Tag Manager,” from my YouTube channel, as I show you all this firsthand.

A video below, titled “How to Add HTML Tags to Your Website Using Google Tag Manager,” from my YouTube channel.

Conclusion

Okay, so that concludes this article. What do you think? Let me know in the comments below (I read and reply to every comment). If you found this article helpful, check out my full blog and be sure to subscribe to my YouTube channel. Thanks for reading!

Leave a Comment

Frequently asked questions (FAQ)

LiaisonLabs is your local partner for SEO & digital marketing services in Mount Vernon, Washington. Here are some answers to the most frequently asked questions about our SEO services.

SEO (Search Engine Optimization) is the process of improving your website's visibility in search engines like Google. When potential customers in Mount Vernon or Skagit County search for your products or services, SEO helps your business appear at the top of search results. This drives more qualified traffic to your website—people who are actively looking for what you offer. For local businesses, effective SEO means more phone calls, more foot traffic, and more revenue without paying for every click like traditional advertising.

A local SEO partner understands the unique market dynamics of Skagit Valley and the Pacific Northwest. We know the seasonal patterns that affect local businesses, from tulip festival tourism to agricultural cycles. Local expertise means we understand which keywords your neighbors are searching, which directories matter for your industry, and how to position your business against local competitors. Plus, we're available for in-person meetings and truly invested in the success of our Mount Vernon business community.

SEO is a long-term investment, and most businesses begin seeing meaningful results within 3 to 6 months. Some quick wins—like optimizing your Google Business Profile or fixing technical issues—can show improvements within weeks. However, building sustainable rankings that drive consistent traffic takes time. The good news? Unlike paid advertising that stops the moment you stop paying, SEO results compound over time. The work we do today continues delivering value for months and years to come.

SEO pricing varies based on your goals, competition, and current website health. Local SEO packages for small businesses typically range from $500 to $2,500 per month, while more comprehensive campaigns for competitive industries may require a larger investment. We offer customized proposals based on a thorough audit of your website and competitive landscape. During your free consultation, we'll discuss your budget and create a strategy that delivers measurable ROI—because effective SEO should pay for itself through increased revenue.

Both aim to improve search visibility, but the focus differs significantly. Local SEO targets customers in a specific geographic area—like Mount Vernon, Burlington, Anacortes, or greater Skagit County. It emphasizes Google Business Profile optimization, local citations, reviews, and location-based keywords. Traditional SEO focuses on broader, often national rankings and prioritizes content marketing, backlink building, and technical optimization. Most Mount Vernon businesses benefit from a local-first strategy, though many of our clients combine both approaches to capture customers at every stage of their search journey.

Absolutely! SEO and paid advertising work best as complementary strategies. Google Ads deliver immediate visibility and are great for testing keywords and driving quick traffic. SEO builds sustainable, long-term visibility that doesn't require ongoing ad spend. Together, they create a powerful combination—ads capture immediate demand while SEO builds your organic presence over time. Many of our Mount Vernon clients find that strong SEO actually improves their ad performance by increasing Quality Scores and reducing cost-per-click, ultimately lowering their total marketing costs while increasing results.