Talk to us

Getting GTM Naming Under Control

In this guide, we share our formulae for clear and consistent naming conventions to help you tidy up your container and introduce some management governance.

We do not claim this to be the only or best way of doing it, but it's a starting point for you to sort your ship out and put your naming conventions on paper.

  1. Background

  2. Why is this important?

  3. Recommended Naming Conventions

a. Containers

b. Workspaces

c. Folders

d. GA4 Google Tag

e. GA4 Event Tags

f. Marketing Pixel Tags

g. Other Tags

h. Triggers

i. Custom Event Triggers

j. Variables

  1. Summary

Background

As your organisation matures, so too will your website and analytics setup. You might add and shelve different marketing campaigns, change critical functions on your website (e.g., changing that email newsletter sign-up from one provider to another), or migrate from Universal Analytics to GA4, to name a few examples.

Naturally, your tracking will get more complicated as part of this process. These variables can make it challenging to track which tags and triggers are in operation, what they do, and when to remove any redundant legacy tracking.

Why is this important?

  1. A build-up of legacy tracking in your container increases its overall size. This bloat affects your website load time, with your users loading a large amount of possibly redundant tracking each time they move across your website pages. This bloat can have a knock-on effect on user experience and potentially cause issues (especially if data is being captured at all).
  1. You might be doubling up on data for specific events! For instance, you might send page views to GA4 on all page views and send page views when people look at your donation form. These problems become more immediately apparent when consistent naming conventions are in place. If you know what you're looking for in the title of your tags, triggers, etc., you know what to filter by and how to spot when something has been duplicated.
  1. It makes GTM easier to understand. Clear, consistent naming conventions can help you keep track of your GTM setup and, over time, understand how it works, what may be causing problems, etc.

Below are our recommendations for naming conventions, but most importantly, keep an eye on consistent capitalisation and use of semantic, digestible language. Remember to set these up with your most scrambled self in mind! After all, you might need to revisit these tags on a chaotic day when there's an urgent issue that needs fixing and be able to quickly find the element you're looking for without having to filter through too much noise to find it.

Summary

So, we've taken you through our recommendations for GTM naming conventions and why they're essential, and we've broken down some different conventions for different tags, triggers, and variables.

Did you find this helpful, or was anything unclear? Need more help? Contact us to chat with the team.