9g.
Google Ads and Meta Practice 13 min

Google Tag Manager without a developer

Gleb Kochetov, founder of 9g Updated October 1, 2026
In short

Google Tag Manager is one script on the site through which everything else is connected: analytics, conversions, pixels. It has three parts: tags — what to send, triggers — when to send it, variables — what to fill in. A developer is needed once, to install the container; after that events are configured without touching site code.

Why bother when you can paste code into the site

Google Tag Manager solves one organizational problem: it removes the need to edit site code every time you want to measure something.

A smartphone with a chat open, held in a hand, black and white
Inquiries increasingly arrive in a chat: reply within minutes or the person writes to the next company

Without it the path is: a new conversion is needed, you write to a developer, they paste a fragment of code, you check nothing broke. With it, one script sits on the site and everything else is configured in a separate interface.

The second thing it gives is order. Every connected system appears in one list. On sites without a tag manager, a year later you discover five trackers, two of them from a previous agency and one duplicating the third.

What it does not do: it does not improve measurement by itself and it does not replace understanding what you are counting. An incorrectly configured event in a tag manager is just as incorrect as one pasted into code by hand.

What it is made of

PartAnswers the questionExample
TagWhat to sendAn event to analytics, a conversion to advertising
TriggerWhen to send itOn form submission, on a phone tap
VariableWhat to fill inPage URL, button text, form type

These three parts are strictly linked: a tag with no trigger never fires, a trigger with no tag does nothing, and variables fill in both.

It is easier to understand through an example. A tag that says "send a form submission event to analytics", a trigger that says "a successful submission on a service page", and a variable "form type" together produce one event with detail — exactly what reports need.

What gets done once

Installing the container is the only place where access to site code is needed. It takes three steps.

  1. Create a container for your site and get two code fragments.
  2. Paste the fragments into the template so they appear on every page, including the thank-you page and the error page.
  3. Verify the install in preview mode: the container should be detected on any page of the site.

A frequent mistake at this step is pasting the code only on the home page or only into one template. It surfaces later and looks like "events do not always fire".

Separately: if the site already has trackers pasted in by hand, either migrate them into the manager or leave them — but not both. A duplicated tracker produces double counting.

How tag, trigger and variable connect The trigger defines the moment: a successful form submission. Variables fill in the detail: form type and page URL. The tag sends an event to analytics and a conversion to the ad account. ONE COMPLETE SETUP TRIGGERVARIABLESTAG Successful submissionForm typeEvent to analytics of a form on aPage URLConversion to ads service pageService line A tag with no trigger never fires; a trigger with no tag does nothing. Variables turn an event into data you can build reports on.
Any tag manager setup reads as these three questions: when, with what, to where.

Which tags come first

Order matters: without the first tag the rest are meaningless.

A person opening a website on a laptop, black and white
The landing page answers the query the click came from, not the company story in general
  1. The base analytics tag. Fires on every page. Without it there is not a single report.
  2. Events for inquiries. Form submission, phone tap, messenger jump.
  3. Passing those events to advertising. As conversions that strategies work with.

Everything else — scrolling, time on page, video views, button clicks — comes later and only if you know what decision you will take from the data.

A common mistake is starting with a long list of events "to have them ready". A month later the container holds thirty tags, five of which work, and working out which is already hard.

How triggers work

A trigger is a firing condition. There are only a few main types.

Trigger typeWhen it firesWhat it is for
Page viewOn loadThe base analytics tag
Link clickOn a click on a linkPhone, messenger, outbound links
Element clickOn a click on any elementButtons that are not links
Form submissionOn submissionForms where it works
Element visibilityWhen an element appears on screenThe thank-you block after submission
Custom eventWhen the site sends an eventThe most reliable route

Every trigger has conditions: on which pages, on which elements. Conditions should be precise — a trigger for "any click" fires on literally any click and pollutes the data.

The last row is the preferred option for anything important. If the site can send a custom event after a successful action, use that rather than guessing from clicks.

The most common job: a form submission

This is where people stumble most, because forms on websites are built in different ways.

The options in descending order of reliability:

  1. A custom event from the site. The site reports a successful submission. The most reliable route — and the only one that reliably tells success from error.
  2. Appearance of the thank-you block. An element visibility trigger on something that only appears after a successful submission.
  3. The built-in form submission trigger. It does not work with every form, especially ones built in page builders.
  4. A click on the button. It always works and always counts wrongly.

The fourth deserves separate comment, because it is the one most often used. A click on the button happens with an empty field and with a submission error. Reports show more inquiries than exist, and under automated bidding the advertising starts optimizing towards failed submissions.

If there is no choice and you have to catch the click, at least add a condition: no event is sent while a validation error is visible on the page.

Four ways to catch a form submission A custom event from the site tells success from error and always works. A thank-you block is almost as reliable. The built-in trigger does not work with every form. A button click always works and counts wrongly. BY RELIABILITY, TOP DOWN METHODTELLS ERRORS APARTWORKS EVERYWHERE Custom site eventThank-you block Built-in triggerButton click YesYes YesAlmost YesNo NoYes The bottom row is the most popular and the only one that counts inquiries wrongly.
The method you choose decides whether conversion counts match real inquiries.

Taps on the phone number and messenger

These two events are simple to configure and deliver disproportionately much.

For the phone you need a trigger on clicks of links whose address starts with the call protocol. On a phone such a tap starts the call immediately, and without this event a substantial share of inquiries never reaches the statistics at all.

For a messenger — a trigger on clicks of links to the relevant domain. This matters because the path beyond is invisible: the conversation happens in an app, and the moment of the jump is the only measurable point.

A condition for both: the phone number and the messenger on the site have to be links, not text. If they are plain text, there is nothing to catch — and that is a job for the site rather than the tag manager.

Variables and the data layer

Variables come built in or custom. Built-in ones give what is known from the page: URL, title, the text of a clicked link, an element’s class. You switch them on in the settings, and that is usually enough to start.

A screen with ad campaign statistics charts, black and white
Bids and budget are decided from the report, not from a feeling that the ads are “sort of running”

Custom variables read data from where the site put it — the data layer. That is needed when the information is not on the page: form type, selected service, calculated amount.

The data layer needs a developer once: the site has to start passing the values. After that, though, measurement becomes precise — inquiries break down by service line without guessing from URLs.

For a simple service site the data layer is often unnecessary: built-in variables and the page URL suffice. The decision depends on whether you need reports by service line.

Preview mode

Preview mode opens the site in a special window and shows what happens: which triggers fired, which tags were sent, which values were filled in.

Four scenarios need testing, and the second is almost always skipped.

  • The successful path. Form filled and submitted — the event appeared once.
  • The failed path. A field left empty, submission refused — no event should appear.
  • The phone. Tested on a mobile device; on a computer a tap behaves differently.
  • A repeat submission. If someone submits twice, you need to know how many events result.

Preview is worth running not only after setup but after any site rebuild. Changing the form builder is the most common reason measurement quietly stops working.

Versions and publishing

Changes in the container do nothing until you publish them. That is an important feature: you can configure and test freely without affecting the live site.

Every publish creates a version — a snapshot of all settings. If something breaks, you can return to the previous one.

A useful habit: write in the version description what exactly changed. "Added phone tap event" explains far more six months later than "Version 14".

And a rule that saves nerves: do not publish several unrelated changes in one version. If something breaks, you will have to roll back all of it.

Consent and privacy

This is an area where the tag manager’s technical capabilities are not the main thing. Data collection rules differ by country and change, and they determine which tags may fire before consent is given.

What matters practically: the tag manager provides a mechanism — you can configure some tags to fire only after consent. But which tags, to what extent, and how the consent itself is worded is a legal question, settled before configuration rather than after.

Separately: the consent banner on the site and the settings in the tag manager have to agree. A frequent situation is a banner that asks something while the tags fire regardless of the answer. That is worse than no banner, because it creates the appearance of a decision.

Common mistakes

  1. The container missing from some pages. Events fire intermittently.
  2. A tracker both in code and in the manager. Double counting.
  3. Inquiries counted on button clicks. Failed submissions enter the conversions.
  4. An "any click" trigger. The data fills with meaningless events.
  5. The phone number as text rather than a link. There is nothing to catch.
  6. Thirty tags "to have them ready". Working out which ones work is already hard.
  7. Changes not published. Configured, tested, and not working.
  8. Several changes in one version. A rollback undoes all of them.
  9. The consent banner unconnected to the tags. The appearance of a decision instead of one.

Checklist

A hand ticking boxes on a checklist, black and white
The checklist: a short check run before launch and repeated every week
  • Container installed in the template and detected on every page
  • Old trackers either migrated into the manager or left alone — no duplicates
  • Base analytics tag firing on every page
  • Events configured for form submission, phone and messenger
  • Form submission caught by a site event or a thank-you block rather than a click
  • Phone number and messenger on the site marked up as links
  • Triggers given precise conditions, with no "any click"
  • Events passed to the ad platforms as conversions
  • Preview used to test the successful path, the failed one, the phone and a repeat submission
  • Testing done on both a computer and a phone
  • Changes published, with the version description stating what changed
  • Consent settings matching the banner on the site
9g numbers

Numbers from our projects

1 script

On the site — everything else connects through it

3 parts

Tags, triggers, variables

1 time

A developer is needed once, to install the container

Questions

Short answers

Why use Google Tag Manager when code can be pasted into the site?

So you do not have to paste it every time. Without a tag manager, each new analytics tool, pixel or conversion is a code change — a job for a developer and a risk of breaking something. With one, a single script sits on the site and everything else is configured in a separate interface.

What parts does it have?

Three. Tags — what exactly to send: an event to analytics, a conversion to advertising, a pixel firing. Triggers — when to do it: on page load, on a click, on a form submission. Variables — what to fill in: the page URL, the button text, a value from the form.

Is a developer needed?

Once — to install the container by adding two code fragments to the site template. After that events are configured with no code changes. The exception is complex cases where the data you need simply is not on the page: then the site has to start supplying it.

Which tags should come first?

Three. The base analytics tag — it should fire on every page. Events for inquiries: form submission, phone tap, messenger jump. And passing those events to the ad platforms as conversions. Everything else gets added later and only when needed.

How do you catch a form submission?

There are three ways, in this order of preference. Best — an event the site itself sends after a successful submission. Middling — the built-in form submission trigger, which does not work on every form. Worst but often the only option — the appearance of a thank-you block on screen, which is still more reliable than a button click.

Why can a click on the submit button not count as an inquiry?

Because the click also happens when the form did not submit: a field was empty, validation failed, the server errored. Such events overstate inquiries, and under automated bidding the advertising starts optimizing towards failed submissions.

How do you count a tap on the phone number?

With a trigger on clicks of links whose address starts with the call protocol. This is one of the most useful events: on a phone a call is often the main contact method, and without this event a substantial share of inquiries never appears in the statistics at all.

What is the data layer?

A place where the site can put data for the tag manager: form type, amount, order id, selected service. The manager reads values from there and fills them into tags. For simple jobs the data layer is unnecessary; for accurate reporting by service line it is required.

How do you verify everything works?

In preview mode: it opens the site in a special window and shows which triggers fire and which tags are sent. Test both the successful path and the failed one — a submission with an empty field, for instance: no event should appear for that.

What are container versions?

Every publish creates a version — a snapshot of all settings. That lets you roll back if something breaks. A useful habit is writing in the version description what exactly changed, otherwise six months later the version list explains nothing.

What do you need to know about consent?

That it is neither a formality nor a job for the tag manager as such. Rules differ by country and determine which tags may fire before consent and which may not. The manager provides a mechanism for controlling that, but the decision about what consents are needed and in what order is a legal one, taken before configuration.

Can several sites share one container?

Technically yes, but it is unwise. Triggers then have to be limited by domain, and any mistake in a condition sends one site’s events into the other’s analytics. A separate container per site is simpler and safer.

Read next

The next step

Hands-on

Services on this topic

Need a review, not an article

Start with a baseline review

We review your current ads, website, CRM and the path from lead to money. The deliverable is a document: where money is lost and which stage to start from. We reply within one business day.

Discuss a project