Project Inquiry

    The more information you provide, the better we’ll understand your project and find the right solutions for you. If you want to share a document or talk to a live person, email us at hello@gravitatedesign.com or give us a call at 888.217.9502. Talk to you soon!

    • This field is for validation purposes and should be left unchanged.

    Google Tag manager was created to make it easier for marketers and their teams to add/edit/remove website tags without the help of a web developer. This includes conversion tracking, site analytics, re-marketing, event tracking, and more. While it isn’t a new feature from Google, it is something you should learn to use.

    Setting up Google Tag Manager V2 is fairly simple and will only require the addition of one script to your site. After adding that script, you should be able to add tags and other tracking scripts all within Google Tag Manager V2, test and debug them, and then publish through an easy-to-use interface.

    When your site is loaded, tag manager will send the most up-to-date configurations to the end-user’s browser with instructions for which tags to fire. Tags are the scripts or tracking codes you want to add to the site and triggers are basically the settings you set up for Google Tag manager to follow.

    In this post I will go through:

    If you are interested in setting up events with Google Tag Manager V2, visit our blog: Google Tag Manager V2 Tutorial: Event Tracking with GTM

    How To Set up Google Tag Manager V2

    1. Login to Google Tag Manager
    2. Select Create Account
      1. Best practices would be for each business to have their own account, one business per account
      2. Name the account, most likely after the business name
    3. After creating the account, you will need to create a container
      1. A container is for your website/app or multiple websites/apps. For example, if your website has two different domains, you would create a container for each domain
      2. Name your container after the domain
      3. Add the domains, this is optional but advised as you can add the actual domain here and a test or developers domain on it to test the tags on
      4. Click Create Container and Accept terms
    4. After creating the container, you will see a Google Tag that will need to be added to all pages on your site just after the <body> tag.
      1. If your site is a wordpress site the <body> tag is generally in the header file.

    After adding the tag to your site, you will need to create tags and rules.

     

    Creating a Tag and a Trigger: Adding Anlaytics through Google Tag Manager

    To add an analytics tag through Google Tag Manager you will want to know a few things. One is that you want to have your UA number from your Universal/Google Analytics account and you want analytics to fire on all pages. To add analytics with Tag Manger:

    1. Click New then select Tag
    2. Name the tag “Google Analytics” (or Universal Analytics)
    3. Select “Google Analytics” as product
    4. Select “Universal Analytics” or “Google Analytics” as tag type depending on your code
    5. Configure your tag by entering the UA number from your tracking script
      • You will need to add your UA number to multiple tags, so it would be easier to create a variable that includes your UA number so you don’t have to remember your UA number each time. I’ll walk you through this below.
    6. Select “Page View” for tracking type
    7. Enable Display Advertising Features
    8. Set this to Fire on “All Pages”
    9. Click save to save tag

    To publish a tag to your site, begin by clicking the down arrow in the top right of the screen and select “create version” to create your first version. After creating a version, click on the down arrow again and select”preview” to view the tags on your site and I suggest clicking on “debug” so you can test each tag to ensure they are firing. This will open up your site with a window at the bottom showing what tags have been fired and what ones haven’t (see photo below). This is an amazing feature and I suggest using it before publishing any tags to your site just to ensure your tags are all firing.

    How To Add your UA Number as a Variable in Google Tag Manager

    Setting up your UA number as a variable will help you reduce the margin for errors when creating new tags.  To add your UA number as a variable in Google Tag Manager do the following:

    1. Click on “Variable” in the left navigation
    2. Scroll down below the “Enabled Built-In Variables” to the “User-Defined Variables” and select “New”
    3. Name your variable “UA Tracking Code”
    4. Select “Constant”
    5. Configure variable by adding your UA number in the field
    6. Click “Create Variable”

    These are the first steps for adding tags to your site through Google Tag Manager, but there will be more posts from our team including how to set up events through Google Tag Manager and more.

    If you liked this article please share. If you have any questions please feel free to leave a comment below.