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!

    grav

    This blog is a continuation of my previous post “Google Tag Manager Tutorial: Setting Up and Adding Analytics”. In order for this post to be useful, Google Tag Manager needs to be on your website and I recommend having your UA number saved as a variable, which I will be referring to throughout this post as {{UA Tracking Code}}.

    If you haven’t saved your UA as a variable you can simply enter the UA code in place of {{UA Tracking Code}} or follow my instructions in my previous post.

    This blog will show you how to set up:

    Outbound Link Clicks

    Outbound link clicks are when a user clicks on a link that leaves the your website. Follow these steps, starting from your container overview page:

    1. Click “New Tag” or “Add New Tag”
    2. Name Tag by clicking the Edit Icon (pencil icon)
    3. Choose your product by selecting “Google Analytics”
    4. Choose your tag type by selecting Universal or Classic Google Analytics
    5. Enter your Tracking ID or {{UA Tracking Code}}
    6. Select Track Type by select “Event”
      1. Category to: Outbound Links
      2. Action to: Click
      3. Label to: {{click url}}
      4. Value can be left blank
      5. Non-Interaction hit can be false
      6. Click “continue”
    7. Choose which option to Fire On
      1. Select “More”
      2. Create New Trigger by selecting “New”
        1. Name Trigger “Outbound Links”
        2. Select “Click”
        3. Configure “Trigger” to target “Just Links” and select continue
        4. Click “Continue”
    8. Choose Enable When
      1. Page URL
      2. matches RegEx
      3. .*
    9. Set Fire On to
      1. Click URL
      2. Does Not Contain
      3. YOURDOMAIN.COM
    10. Click “Create Trigger”
    11. Click “Create Tag”

    Phone Clicks to Call

    This will track anytime a user clicks on a phone number from a mobile device. Follow these steps, starting from your container overview page:

    1. Click “New Tag” or “Add New Tag”
    2. Name Tag by clicking the Edit Icon (pencil icon)
    3. Choose your product by selecting “Google Analytics”
    4. Choose your tag type by selecting Universal or Classic Google Analytics
    5. Enter your Tracking ID or {{UA Tracking Code}}
    6. Select Track Type by select “Event”
      1. Category to: Contact
      2. Action to: Phone
      3. Label to: {{click url}}
      4. Value can be left blank
      5. Non-Interaction hit can be false
      6. Click “continue”
    7. Choose which option to Fire On
      1. Select “More”
      2. Create New Trigger by selecting “New”
        1. Name Trigger “Tel Links”
        2. Select “Click”
        3. Configure “Trigger” to target “Just Links” and select continue
        4. Set Enable When to
          1. Page Url
          2. Matches RegEx
          3. .*
        5. Set Fire On to Some Clicks
          1. Click URL
          2. Starts With
          3. Tel:
        6. Click “Continue”
        7. Click “Create Trigger”
    8. Click “Create Tag”

    Email Link Clicks

    This will track anytime a user clicks on an email link on your website. Follow these steps, starting from your container overview page:

    1. Click “New Tag” or “Add New Tag”
    2. Name Tag by clicking the Edit Icon (pencil icon)
    3. Choose your product by selecting “Google Analytics”
    4. Choose your tag type by selecting Universal or Classic Google Analytics
    5. Enter your Tracking ID or {{UA Tracking Code}}
    6. Select Track Type by select “Event”
      1. Category to: Contact
      2. Action to: Email
      3. Label to: {{click url}}
      4. Value can be left blank
      5. Non-Interaction hit can be false
      6. Click “continue”
    7. Choose which option to Fire On
      1. Select “More”
      2. Create New Trigger by selecting “New”
        1. Name Trigger “Email Links”
        2. Select “Click”
        3. Configure “Trigger” to target “Just Links” and select continue
        4. Set Enable When to
          1. Page URL
          2. Matches RegEx
          3. .*
        5. Set Fire On to Some Clicks
          1. Click URL
          2. Starts With
          3. mailto:
        6. Click “Continue”
        7. Click “Create Trigger”
    8. Click “Create Tag”

    File Downloads

    This will track anytime a user clicks on a file to download that matches one of the predefined file types. If you want to track additional file types, simply add them to the list in step 22. Follow these steps, starting from your container overview page:

    1. In the left navigation select Tags, Click “New”
    2. Name Tag by clicking the Edit Icon (pencil icon)
    3. Choose your product by selecting “Google Analytics”
    4. Choose your tag type by selecting Universal or Classic Google Analytics
    5. Enter your Tracking ID or {{UA Tracking Code}}
    6. Select Track Type by select “Event”
      1. Category to: Downloads
      2. Action to: {{click element}}
      3. Label to: {{click url}}
      4. Value can be left blank
      5. Non-Interaction hit can be false
      6. Click “Continue”
    7. Choose which option to Fire On
      1. Select “More”
      2. Create New Trigger by selecting “New”
        1. Name Trigger “File Downloads”
        2. Select “Click”
        3. Configure “Trigger” to target “Just links” and select continue
        4. Set Enable When to
          1. Page URL
          2. matches RegEx
          3. .*
        5. Set Fire On to Some Clicks
          1. Click URL
          2. Matches RegEx (ignore case)
          3. ^.*.(7z|aac|arc|arj|asf|asx|avi|bin|csv|doc|docx|exe|flv|gif|gz|gzip|hqx|jar|jpe?g|js|mp(2|3|4|e?g)|mov(ie)?|msi|msp|pdf|phps|png|ppt|qtm?|ra(m|r)?|sea|sit|tar|tgz|torrent|txt|wav|wma|wmv|wpd|xls|xml|z|zip)$
        6. Click “Continue”
        7. Click “Create Trigger”
    8. Click “Create Tag”

    Internal Link Clicks

    This might not be needed for most sites, but it can help you identify the top clicked links on individual pages and it’s just more data in case you need it. Follow these steps, starting from your container overview page:

    1. Click “New Tag” or “Add New Tag”
    2. Name Tag by clicking the Edit Icon (pencil icon)
    3. Choose your product by selecting “Google Analytics”
    4. Choose your tag type by selecting Universal or Classic Google Analytics
    5. Enter your Tracking ID or {{UA Tracking Code}}
    6. Select Track Type by select “Event”
      1. Category to: Internal Links
      2. Action to: Click
      3. Label to: {{click url}}
      4. Value can be left blank
      5. Non-Interaction hit can be false
      6. Click “continue”
    7. Choose which option to Fire On
      1. Select “More”
      2. Create New Trigger by selecting “New”
        1. Name Trigger “Internal Links”
        2. Select “Click”
        3. Configure “Trigger” to target “Just Links” and select continue
        4. Set Enable When to
          1. Page URL
          2. Matches RegEx
          3. .*
        5. Choose Fire On “Some Clicks” and set to when Click URL contains YOURDOMAIN.COM
        6. Click “Create Trigger”
      3. Click “Continue”Create New Trigger by selecting “New”
        1. Name Trigger “Javascript Void”
        2. Select “Click”
        3. Configure “Trigger” to target “Just Links” and select continue
        4. Set Enable When to
          1. Element URL
          2. does not match RegEx (ignore case)
          3. .*javascript:void.*
        5. Click “Create Trigger”
    8. Click “Create Tag”

    GTM V2 is fairly new, so if you’re looking for help let us know.

    Contact us for help setting up Google Tag Manager on your website.