Instructions

Terms of reference for installing the Google Tag Manager (GTM) service code

Редакція Spilno Agency | 10 Mar 2025 Updated: 06 May 2026 | 5 min read 23 views
Terms of reference for installing the Google Tag Manager (GTM) service code

Writing a technical specification is a skill that not all specialists have. That’s why we’re sharing an example of our GTM (Google Tag Manager) terms of reference in this article. You can download this technical specification in docx format and customize it to your liking.

Technical task:

Copy the code below and paste it on every page of your website.

1. Paste the code below as close to the beginning tag of the page as possible:

<!-- Google Tag Manager -->
<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,'script','dataLayer','GTM-NQP9VD5D');</script>
<!-- End Google Tag Manager -->

*Please note that the ID “GTM-NQP9VD5D ” in the code must be changed to the actual one.

2. Paste the following code right after the initial tag:

<!-- Google Tag Manager (noscript) -->
<noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-NQP9VD5D"
height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
<!-- End Google Tag Manager (noscript) -->

*Please note that the ID “GTM-NQP9VD5D ” in the code should be changed to the actual one.

3. After installing the code, the task manager must check the correctness of the container installation.

To do this, the internal tools of the Google Tag Manager service are used, which determines the presence of the code on the site pages, and after 48 hours displays the presence or absence of errors when loading the code container on the site.

Frequently Asked Questions

How can I learn more about this topic?

We recommend exploring other articles on our blog and official documentation. Our content is regularly updated to reflect the latest changes in 2026.

Can I get a consultation?

Yes, you can reach out to our team for a free consultation through the contact form on our website. We’ll help you find the best solution for your business needs.

Are there free tools available?

Most tools described in this article offer free plans or trial versions. Check the pricing section in the article for detailed information.

Редакція Spilno Agency Spilno Agency All articles by author →
← Back to blog