Welcome to the fast track to getting your Google Tag Manager container set up. Here, we’ll show you how to import a container into Google Tag Manager (GTM) and, as a bonus, we’ll also give you our readymade GTM starting recipe designed to help marketers and small business owners quickly add common website tags to their website.
As veteran marketers with extensive tagging & tracking experience, we know that setting up your GTM container, whether it’s your 1st or your 51st, requires many of the same foundational tasks regardless of how it’ll be used in the end. Luckily, Google Tag Manager offers the ability to import “recipes” into an existing Tag Manager container so that you can speed up this process.
Follow the instructions below to learn how to import a Google Tag Manager container. If you already know how to import a Google Tag Manager container and you’re just looking for our free starting GTM recipe, feel free to skip ahead.
What Is A GTM Recipe?
By itself, GTM doesn’t do a whole lot. It’s sort of like an empty box… err… container waiting to be filled. We must therefore add the requisite components to the container in order to track what we need on our website. This is where importing GTM container files, commonly called GTM Recipes comes in handy.
A GTM Recipe is a .json file that allows users to easily add a preconfigured GTM setup into their existing GTM Container tag. Much like the more commonly used version of the word, these “recipes” are made up of GTM ingredients (tags, triggers, and variables) used to tag your website. Using recipes can help speed up the process of cooking up your favorite tagging meals or help you concoct something that might be beyond your expertise in the metaphorical tagging kitchen.
Pro Tip: In most cases, we recommend using only one GTM container per website and only one website per GTM container.
Instructions On How To Import A Google Tag Manager Container
Before we can import a Google Tag Manager container, you’ll need to make sure you have a GTM account created. Once that’s created, you’ll be able to set up your first GTM web container and import any helpful GTM recipes, like ours below, that you find to easily build out your container and track your website usage.
- Navigate to tagmanger.google.com and sign in. From the GTM Admin screen, Select “Import Container”`
- You’ll then be presented with the Import Container screen. Click the “Choose Container File” button and select the .json file you’d like to import into this GTM container. Skip down to our Premade Starting GTM Container below if you don’t already have an importable container file.
- Next, Choose the Existing workspace, then click Default Workspace (or whatever your current workspace is named)
- After that, you can choose to Overwrite or Merge (recommended) the import file with any existing tags, triggers, and variables in your selected workspace.
- Use Overwrite if you’d like to replace everything that’s in your selected GTM workspace with the imported GTM file. Important: This will erase anything that’s currently in your GTM container.
- Use Merge to combine your current tags, triggers, and variables with the tags, triggers, and variables from the imported file. If selected, you will then be able to choose if you’d like to overwrite conflicting items or rename them. In most cases, we recommend renaming them to be safe.
- Lastly, ensure that everything in the preview looks correct, then click confirm to import your container.
That’s it. You now know how to import a Google Tag Manager container and can use this method to import the Intigress GTM Start Recipe below to be well on your way to using GTM to track your website usage.
Our Starting GTM Container Recipe
Importing our starting GTM container recipe helps you easily add many of the basic tags, triggers, and variables marketers need when setting up a GTM container for the first time. Whether this is your 1st time setting up a Google Tag Manager or your 101st, this free GTM recipe will get you to the same starting point we use to help our clients with their website tagging & tracking.
What’s Included in the Intigress Start GTM Recipe?
At a high level, here’s what’s you’ll get after importing our premade, starting GTM recipe.
- Base Tags
- Google Analytics 4 tag
- Universal Analytics tag – Paused by default since GA4 is now the default Google Analytics
- Facebook Pixel – Paused by default
- Event tags (no setup needed)
- clicks_contact (GA4) – Tracks mailto: & tel: links
- Contact Clicks (Universal Analytics) – Tracks mailto: & tel: links – Paused by default
- Outbound Link Clicks (Universal Analytics) – Automatically tracked in GA4 – Paused by default
- 6 Click variables enabled
- 6 Form variables enabled
- Universal Analytics Settings variable (needs configuration)
- GA4 Measurement ID constant variable (needs configuration)
- Facebook Pixel ID constant variable (needs configuration)
After import, this is what the detailed view looks like at the time this article was published. However, please note that we are constantly making improvements to our starting GTM container recipe so this may change over time.
Before Getting Started
While most of the container is set up for you, there are a few things that need your configuration. In order to make this process faster, make sure you have the following information on hand before you import this GTM container recipe:
- Google Analytics UA code (for Universal Analytics): UA-123456789-1
- Google Analytics 4 Measurement ID: G-XXXXXXXXX
- Facebook Pixel ID
Make sure you follow the instructions exactly, but if you get stuck at any point in the process, feel free to reach out to our team and we’ll be happy to help get you unstuck.
Intigress GTM Start Recipe Configuration
As mentioned above, all Universal Analytics and Facebook tags are paused by default since not every site uses them. If you are only using Google Analytics 4 and not using Universal Analytics or Facebook Pixel, feel free to move on to the Update Variables section below after importing this GTM container.
If you are using Universal Analytics or Facebook Pixel, you’ll need to unpause those tags by clicking the checkboxes then pressing the play button that appears.
In order to make the standard tags in this recipe work, you need to make them unique to your accounts by updating a few variables.
Pro Tip: You are not required to use variables to store your UA code, Measurement ID, or FB Pixel, but it helps maintain uniformity and makes it easier to reference it in your tags. We do this in our GTM container.
- After importing our starting GTM recipe, click Variables on the left-hand side of the GTM Overview page.
- Scroll down to the “User-Defined Variables” section. From here, there are 4 changes that you will need to make:
Universal Analytics Variable
- Click into the “GA – UA Code” variable to update your Universal Analytics settings.
- This variable is used to pass settings to your Universal Analytics property. It has been preconfigured to anonymize users’ IP addresses, enable Display Advertising features, and match your internal traffic cookie to Custom Dimension 1 (we’ll get to this later).
- The only thing you should need to edit here is the “Tracking ID” field. You should replace the placeholder (UA-000000000-1) with your actual UA code, then click Save.
- Your Google Analytics UA code can be found in your Universal Analytics Admin > Tracking Info > Tracking Code. It starts with “UA-”
Google Analytics 4 Measurement ID Variable
- Update “Constant – GA4 Measurement ID” variable
- If you are using Google Analytics 4, this is where you can insert your Google Analytics 4 Measurement ID. Insert your Measurement ID for your GA4 Data Stream in the Value field instead of “G-AB12CDE3F,”, then click Save.
- Your GA4 Measurement ID can be found by choosing your website under Data Streams in the property level of your GA4 admin settings. It starts will “G-”
Pro Tip: In Google Tag Manager, GA4 works a little differently than Universal Analytics so there are no additional settings configured here. You are not required to store your Measurement ID in a Constant variable, but we recommend it. If you are not using Google Analytics 4 at this time, we recommend going back to the Tags section and pausing the tag named “GA4 – Configuration” by selecting its checkbox, then pressing the pause button.
Facebook Pixel ID Variable
- Update “Constant – Facebook Pixel ID” variable
- By now you should have a hang of it. Similar to #1 and #2 above, you can insert your Facebook Pixel ID in this constant variable by updating “000000000000000” in the Value field with your actual Pixel ID, then clicking Save.
- Your Pixel ID can be found by logging into your Facebook Events Manager or in your Business Manager Settings under Data Sources > Pixels.
Pro Tip: If you are not using the Facebook pixel at this time, we recommend going back to the Tags section and pausing the tag named “Facebook Pixel Template” by selecting its checkbox then pressing the pause button.
Bonus – Internal Traffic Cookie
For those eagle eye readers, we also have included an internal traffic cookie that allows you to easily identify internal vs external traffic in both GA4 and Universal Analytics. For steps on configuring that, please read our guide on how to track internal traffic in Google Analytics.
Publish Your GTM Container
As always, we encourage you to use GTM’s Preview Mode to test and debug your container before publishing. If you haven’t already, you’ll need to make sure you’ve added GTM to your website. You’ll also need to publish your GTM container before you can use GTM’s preview mode to test and debug.
Once you’re satisfied with the setup of your imported GTM container, then go ahead and make sure all of your changes are published. Once they are you’ll have Universal Analytics, Google Analytics 4, and Facebook pixel tags up and running.
Congratulations on importing a GTM container!
Importing our Google Tag Manager container opens the door for all kinds of cool tagging and tracking. Your final GTM setup may differ depending on your type of business, the size of your website, and many other factors so be sure to think about your ideal measurement strategy so that you can make better business decisions using the information you collect via GTM.
If you need assistance with setting up or importing your GTM container, feel free to reach out to our tagging experts and we’ll be happy to answer any questions you may have.