πŸ” Tag Assistant Guide

Testing Your GTM Setup

What is Tag Assistant?

Tag Assistant (Beta) is Google's web-based tool to verify that your Google tags (GTM, GA4, Google Ads, etc.) are working correctly. It helps you debug and validate your tag implementation.

πŸ†• Tag Assistant Beta vs Legacy Extension

Feature Tag Assistant Beta (Web) Tag Assistant Legacy (Extension)
Location tagassistant.google.com Chrome Extension
Setup Add domain in web interface Install extension, click icon
Debugging Real-time web dashboard Overlay on your page
Status βœ… Current (Beta) ⚠️ Legacy (still works)

Recommendation

Use Tag Assistant Beta for modern testing, but the Legacy extension still works great too!

πŸš€ Step-by-Step: Using Tag Assistant Beta

Step 1: Add Your Domain

  1. Go to: tagassistant.google.com
  2. Click: "Add domain" button (blue button on the right)
  3. Enter your domain:
    • For localhost: http://localhost
    • For production: https://yourdomain.com
    • For your learning platform: http://localhost/gtm-learning
  4. Click: "Add" or "Save"

Step 2: Start Debugging Session

  1. After adding domain, you'll see it in the "Domains" box
  2. Click on your domain to start a debugging session
  3. Copy the debug URL that Tag Assistant provides
    • It will look like: http://localhost/gtm-learning?gtm_debug=xxxxx
    • Or you'll get instructions to add a query parameter

Step 3: Open Your Page with Debug Mode

Option A: Using Debug URL

  1. Tag Assistant will provide a special URL
  2. Open that URL in a new tab
  3. Your page will now be in debug mode

Option B: Manual Debug Parameter

  1. Add ?gtm_debug=xxxxx to your URL
  2. Or use: ?debug_mode=true
  3. Refresh your page

Step 4: View Tag Status

  1. Go back to Tag Assistant (tagassistant.google.com)
  2. You'll see real-time information:
    • βœ… Tags that fired successfully
    • ⚠️ Tags with warnings
    • ❌ Tags that failed
    • πŸ“Š Event data
    • πŸ” Tag details

Step 5: Test Your Events

  1. On your learning platform page, click the test buttons:
    • "Click Me" button
    • "Simulate Page View" button
    • "Send Custom Event" button
  2. In Tag Assistant, you should see:
    • gtm.js loaded
    • GA4 - Configuration tag fired
    • button_click event (when you click)
    • page_view event
    • custom_event event

πŸ“Š What You'll See in Tag Assistant

Tag Status Indicators

  • βœ… Green Check - Tag fired successfully
  • ⚠️ Yellow Warning - Tag fired but has warnings
  • ❌ Red X - Tag failed to fire
  • ⏸️ Gray - Tag not triggered yet

Information Displayed

  1. Tag Name: Which tag fired
  2. Tag Type: GTM, GA4, Google Ads, etc.
  3. Firing Status: Success, warning, or error
  4. Event Data: What data was sent
  5. Timing: When the tag fired
  6. Errors: Any issues detected

🎯 Testing Your Learning Platform

To test your learning platform with Tag Assistant:

  1. Make sure your GTM container is published
  2. Add your localhost domain to Tag Assistant
  3. Start a debugging session
  4. Open your learning platform page with the debug URL
  5. Click the test buttons on your page
  6. Check Tag Assistant dashboard for tag firing status

πŸ”§ Common Issues & Solutions

Tags Not Showing in Tag Assistant

  • Make sure you're using the debug URL provided by Tag Assistant
  • Check that your GTM container is published
  • Verify GTM code is loading (check browser Network tab)
  • Try refreshing the page

Debug URL Not Working

  • Make sure you copied the complete debug URL
  • Check that the domain matches exactly
  • Try manually adding ?debug_mode=true to your URL
  • Clear browser cache and try again

Tags Showing as Failed

  • Check GTM Preview Mode first to verify tags are configured correctly
  • Look at the error message in Tag Assistant for details
  • Verify trigger conditions match your page
  • Check that required variables are set correctly

πŸ’‘ Tips for Best Results

  • Use both tools: Tag Assistant for quick validation, GTM Preview Mode for detailed debugging
  • Test in incognito mode: Avoid browser extensions interfering
  • Check multiple pages: Test different pages to ensure tags fire correctly everywhere
  • Test events: Don't just check page load - test button clicks and custom events too
  • Document issues: Take screenshots of errors to help troubleshoot

πŸ“š Related Documentation

πŸŽ‰ Ready to Test?

Go to tagassistant.google.com and start testing your tags!