The little hero of GTM – The Constant Variable

The Constant Variable is the most underrated variable in GTM. It’s there for you, but most probably you don’t use it. And you should!

If you want to start using Google Tag Manager your first action should be creating Constant variable (Yes, even before the GA pageview tag). Why? Bear with me and you’ll understand!

There is one thing you need to include in every single GA Event tag – the tracking ID (your UA code):

gtm tracking id

If you want to save your time, looking for your UA code every time you create new event or changing and updating every single tag when you change your analytics account, use the constant variable. It’s a must, and it takes just a few seconds to set it up. Do this every time when you create new GTM container and you’ll be grateful.

Just create new Constant Variable, place your UA code there and use it in every event you create, instead of ‘hard-coding’ it in the Tracking ID field!

Check these related articles:

1 Comment

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.