The <script> portion of the container must be placed in the head-section of your website and the <noscript> potion should be placed immediately after the opening <body> element.
3. Creating A UA Variable & Unlock Built-in Variables
Before you get started creating tags, one of the first steps we suggest you do is create a custom variable that houses your Universal Analytics number. You can find this in the Admin > Tracking Info section in your Google Analytics account.
To start this, navigate to the variable tab within GTM, scroll to the bottom and select “New” under the section titled “User-Defined Variables.” Select the “Constant” Variable type and enter your UA number in the Value field. The format should look like UA-XXXXXX, label your variable UA-Number and hit Save. You can now reference this variable in all of your tags under “Tracking ID.”
The value of setting up this variable is that if you even need to change UA numbers, you need to update in once place and not in every single tag your create. Also, this helps ensure no mistakes are made as you manually type in your UA number on each tag you create.
While you're within the variables tab, enable all of the Built-In Variables by selecting configure and check the boxes next to each.
4. Naming Structure
Creating a consistent naming structure will not affect the actual performance of your GTM Account but it helps keep the account clean, organized and makes it overall easier to manage. While there is no correct way to name your tags, finding a solution that works for you and sticking to it is the best approach. I’ve outlined the way I prefer to manage my tags.
Start By Including Product Name
The most popular tag you will use is likely Google Analytics. I label these tags starting with GA. You may also work with Adwords which I tend to label as AW. If you’re using custom HTML, I label my tags HTML.
Include the Type of Tag (e.g. Track Type)
If using a pageview tag, you may want to consider naming that tag GA Pageview. If an event, I’d suggest you label GA Event.
Include Details on the Trigger Location or Trigger Type
This is subject to the tag at hand. If I’m looking to name a tag that only fires on a certain page, like a Thank You page, I may name this GA Pageview - Thank You - Contact Us Form.
Examples of Tag Names
- GA Event - Email Link Clicks
- GA Pageview - View Cart
- GA Event - CTA - Homepage Clicks
- GA Event - PDF Download
- HTML - Pageview - Heatmapping Software
5. Utilize Your Versions
Along with keeping a consistent naming structure, utilizing versions is another great way to keep your tags organized and make it much easier to go back and QA sets of tags in the event something breaks.
Versions allow you specifically name and annotate sets of tags / triggers you publish. By doing so, you can then drill down into specific versions and group your tags together. You can then dig even deeper into a particular version and see all activity of what was changed and by who. This is extremely valuable if you have more than one publisher making changes to your GTM account or something breaks and you need to go back and find out what was recently changed.
Have questions? Need help with your implementation? We have experts at Marcel Digital that are ready to take your questions and learn more about your needs. Feel free to drop us a line or learn more about our analytics services! We're here to help in any way that we can!