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
Check these values
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.
Your result
How it was worked out
How to use the GTM naming checker
- 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. - Choose the separator between the parts, such as
" - ", the case of the letters and how the words inside a part are joined. - 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.
- 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
- The pattern is yours: this tool holds no naming rules of Google. Tag Manager itself accepts almost any name.
- At most 2,000 names at once and 12 parts in a pattern.
- To make names for campaigns or ad files in one pattern, use the Campaign Naming Generator or the Ad Asset Naming Generator. To check GA4 event names, use the GA4 Event Name Generator.