2 November 2026 · 9 min read

Tag Firing Order in GTM: What Runs First, and What It Costs When Nothing Does

A client sends a screenshot of a conversion report with three days missing. The Ads tag is in the container, the trigger is correct, and preview mode shows the tag firing. What preview also shows, two rows above it, is the consent state arriving after the conversion tag has already sent its request.

That is an ordering problem, and it is the most common reason a container that looks correct in preview behaves differently on a live site. Google Tag Manager gives you four separate controls that all touch firing order. They overlap, they do not do the same job, and most containers use them as if they were interchangeable.

This is a walk through what each one actually controls, where the order breaks in practice, and the audit that finds it before a client does.

The five trigger types already have a fixed order

Before any tag setting is considered, the trigger decides which page-load event a tag hangs off, and those events have a documented precedence (page view triggers). From first to last:

  1. Consent Initialization fires before any other trigger, including Initialization.
  2. Initialization fires before all other triggers except Consent Initialization.
  3. Page View fires as the browser begins to load the page.
  4. DOM Ready fires once the browser has constructed the full page and the document is ready to be parsed.
  5. Window Loaded fires once the page has fully loaded, embedded resources included.

The practical consequence is easy to miss. A tag with priority 50 on DOM Ready still runs after a tag with priority -5 on Page View, because the event itself has not happened yet. Priority sorts tags that are triggered by the same event. It cannot pull a tag forward across trigger types.

This is where the first category of bug lives. Someone moves a tag from Page View to Window Loaded because a data layer variable was reading empty, the value appears, and the case is closed. Six weeks later the tag fires late enough that it misses a single-page app route change, or lands after the user has already navigated away. The trigger was used as a delay mechanism, which works until the delay matters.

What firing priority actually buys you

Tag firing priority sits under Advanced Settings on any tag. It takes a positive or negative integer. Higher values fire before lower ones, so a priority 3 tag fires before priority 1 or 2, and the default is 0 when you leave it blank (Prioritization).

Read the rest of that sentence in the documentation carefully: tags still fire asynchronously. Priority decides who is asked first, not who finishes first. If your reasoning is "the data layer push happens in the priority 10 tag, so the priority 5 tag will read the value", the reasoning is wrong. The push may still be in flight.

What priority is genuinely good for is the ordering of independent tags where nothing downstream depends on the result. A consent update tag ahead of the measurement tags. An error-logging tag last so it catches failures from everything else. A script loader ahead of the tags that expect the library to exist, though that case is better served by sequencing.

What it is bad for is dependency. Any time tag B needs a value, a cookie or a global that tag A creates, priority is the wrong tool and the container will look fine in testing on a fast connection.

Sequencing is the dependency mechanism

Tag sequencing is the tool that actually enforces order. It lives under Advanced Settings, it is available in web containers, and it works in two directions (Tag sequencing).

A setup tag fires before the primary tag. Tick the box, pick the tag, and optionally tick "Don't fire this tag if the setup tag fails" so the payload only goes out when the preparation succeeded. A cleanup tag fires immediately after the primary tag, with the mirror-image option to skip it when the primary failed.

There is one detail in that documentation worth memorising, because it is the difference between sequencing that works and sequencing that appears to work. If the setup tag is a Custom HTML tag that changes data layer values, it has to use google_tag_manager[{{Container ID}}].dataLayer.set(), not .push(). A push is not recognised until the following event, so the primary tag reads the old value. Using .set() lets the current event see it.

The other half is what sequencing does not cover. It does not fix consent, because the consent decision is evaluated against the tag's consent settings and the state at the time the trigger fires. It does not survive a redesign of the container either: if someone later points the setup tag at a different trigger, the sequence still runs in order but at the wrong moment, and nothing warns you.

Consent sits above all of it

The Consent Initialization trigger is the one piece of ordering that Google built into the container rather than leaving to configuration. It fires before all other tags, Initialization included, and every web container ships a Consent Initialization - All Pages trigger by default (Tag Manager consent mode support).

Google's own guidance for Ads troubleshooting is blunt about the failure: find the event that triggers the Conversion Linker, often Container Loaded, and confirm the consent-writing tags fire before it. If the consent state is not present in the Container Loaded event, the tags downstream of it send without it (Consent Mode troubleshooting for Google Ads).

Which means the ordering fix for a UK site with a CMP is not priority and not sequencing. It is moving the CMP tag onto Consent Initialization, and then setting consent requirements on the tags that must wait. Ordering gets the state written early. The tag-level consent setting is what actually blocks a tag when the answer is no.

Two related traps. First, putting an analytics or Ads tag on Consent Initialization because it "needs to run early" defeats the purpose of the trigger and puts measurement code ahead of the consent decision. Initialization exists for that, and it sits one step below. Second, a cleanup tag attached to a tag that is blocked for missing consent will not run, because the primary never fired. The cleanup is silently skipped and the state it was supposed to restore stays changed.

Firing options decide how often, which is a different question

The third control in the same settings panel answers a separate question: not when a tag fires, but how many times. The options are Unlimited, Once per event and Once per page (Tag firing options). Unlimited is documented as being used with tag sequencing, Once per event prevents the same data being added to the data layer more than once for one event, and Once per page suits a library that only needs loading on page load.

Mix this up with sequencing and you get the duplicate that is hardest to explain to a client: a purchase counted twice because the primary tag fired on both DOM Ready and a custom event, and the Custom HTML tag it sequences pushed a second transaction. The events tab shows two rows with the same transaction ID and the revenue report shows double.

Where order problems actually surface

Five shapes account for most of what I find in audits.

A conversion tag firing before the Conversion Linker. The link decoration has not happened, so the click identifier is missing from the request and the conversion lands without an attribution key. The symptom is conversion counts that disagree between Ads and GA4, not an error.

A duplicate purchase from a tag that sequences a Custom HTML tag which calls gtag() itself. Two senders for one event.

A data layer variable that reads empty on the first page load and correct on every page after it. That is a read happening before the push, and it is a sequencing problem that priority will never fix.

A cleanup tag that never runs, for the consent reason above, leaving a global or a cookie in a changed state.

And the inverse of a missing tag: "Only fire this tag in published containers" is ticked, the tag does not appear in preview, someone spends an afternoon debugging a tag that works perfectly in production. GTM even tells you when it would have fired, but only if you know the setting exists.

An audit that takes about an hour

Work through the container in this order and the ordering defects fall out on their own.

  1. Export the container as JSON and list every tag with its trigger type, priority value, setup tag and cleanup tag. A spreadsheet makes the next steps possible.
  2. Sort by trigger type. Anything on Window Loaded that is not waiting for a resource deserves a question.
  3. Find tags sharing a trigger and a priority value. Same event plus same priority means the order between them is undetermined, and any dependency between them is luck.
  4. Mark every tag that reads a value another tag is supposed to create. Each one needs sequencing, not priority, or a trigger that fires later.
  5. Check that the CMP tag sits on Consent Initialization and that every tag which must wait carries a consent requirement.
  6. Review firing options on any tag that pushes to the data layer, then search the events for duplicate transaction IDs or duplicate event names within one session.
  7. List the tags with a custom firing schedule and confirm the current date sits inside the window. An expired campaign window is a common cause of a tag that quietly stopped.
  8. Before debugging anything in preview, check the published-only checkbox on the tag you are chasing.

Then test one real conversion end to end in Tag Assistant rather than in preview. Preview shows you the container's intentions. Tag Assistant shows you what the browser actually sent, consent state included, and the difference between those two views is where every one of these bugs lives.

Write the order down

A container is not a document, which is why this keeps happening. The next person to open it sees a list of tags with triggers, and the reason one tag must run before another exists only in the head of whoever built it.

Keep a short note per container: the tags whose order matters, why, and which mechanism enforces it. Four lines is enough for most accounts. When someone proposes a change to the CMP tag or the conversion tag, that note is the difference between a considered edit and an afternoon of unexplained conversion loss.

Ordering is not about tidiness. It is about whether the request that leaves the browser carries the consent state and the click identifier it was supposed to carry. Everything else is decoration.

Conversions that do not match between Ads and GA4, or a consent tag you cannot place? Book a free tracking audit and we will map the firing order in the container, the consent state at each event and the tags that depend on both.