Toolvito

Works on this device

Gtm Naming Checker

Set your naming pattern for Google Tag Manager (GTM), such as Platform - Type - Detail, and check the names of your tags, triggers and variables against it. Paste the names, or open the container export file. Every name that breaks the pattern is listed with the reason. Nothing is sent to Google.

Enter your values

Set your naming pattern, then paste the names of tags, triggers or variables, one on each line.

Your values

Copy them from the lists of tags, triggers or variables in Tag Manager. Empty lines are skipped. At most 2,000 names.

Untick it to allow characters such as . or ( ) inside a part, for example in DLV - ecommerce.value.

Parts of the pattern, in order

More options

Optional: your team's own limit, if it has one.

Your values are worked out in this browser. They are not sent to a server.

Your result will show here

Fill in the values, then choose Check the names.

How to use the GTM naming checker

  1. Set the Parts of the pattern, in order, such as Platform, Type and Detail. In a part you can list the allowed values, such as GA4, Google Ads, Meta. Leave it empty to allow any value. Or choose one of the Example patterns.
  2. Choose the separator between the parts, such as " - ", the case of the letters and how the words inside a part are joined.
  3. Paste the names, one on each line, copied from the list of tags, triggers or variables in Tag Manager. Or choose Names in a container export file and open the file that Tag Manager exports under Admin, Export Container.
  4. The result is shown while you type: each name with "Keeps the pattern" or the problems it has. Download the table as a CSV file or print it.

How a name is checked

  • The name is split at the separator. The number of parts must be the number of parts in the pattern. A name with a dash such as – in place of the hyphen - is not split there.
  • A part with allowed values must be one of them, exactly, with the same capital and small letters. The allowed values are written by the same rules first.
  • A part without allowed values must keep the rules: only letters and digits in each word (when that box is ticked), the joiner only between words, and the case rule.
  • A name with white space at the start or the end, a name used twice, and a name longer than your limit (under More options) are listed too.

What is read from a container export

The export is a JSON file. The tool reads containerVersion.tag, containerVersion.trigger and containerVersion.variable: for each item its name, its type as Tag Manager wrote it, and the name of its folder. Built-in variables are not listed, because their names are fixed. Nothing else of the file is used, and the file is not changed or sent anywhere.

Worked example

With the pattern Platform (GA4, Google Ads, Meta, LinkedIn) - Type (Config, Event, Conversion, Remarketing) - Detail, the separator " - ", letters as typed and words joined with a space, the example list gives 4 names that keep the pattern and 4 with problems.

Meta pixel - Page View has 2 parts where the pattern has 3. GA4 – Event – Scroll uses a dash, so it has 1 part. The second GA4 - Event - Form Submit is the same as line 2. In ga4 - event - video, ga4 and event are not allowed values, because capital letters count.

Limits you should know

Related tools