Testing Your Instrumentation and Tags

Before you publish, it is a good idea to test the tag to make sure it is working. Click on PREVIEW; Now you can test the whole setup:

A screenshot of a computer

Description automatically generated

  • You should see something like this in the TAG ASSISTANT tab in your browser

A screenshot of a web page

Description automatically generated

  • If you click on the CONTAINER LOADED event and VARIABLES; you should see this:
    • Note debug_mode is set, and it is capturing your site

A screenshot of a computer

Description automatically generated

  • IF all is well, go back to the workspace tab and click on SUBMIT to publish the tag;
    • You will be asked to give this version of the workspace a name and description of the changes.

A screenshot of a computer

Description automatically generated

  • Another verification is to go into GA4 real time reporting, and you should see the GTM test pageview and any other traffic from you or your teammates there.
  • See this page for additional help: https://support.google.com/tagmanager/answer/9442095?hl=en
  • If you have set up the DEBUG MODE parameter, you can also use this to test all your tags. See this tutorial: https://measureschool.com/ga4-debugview/
  • One other thing you can check in your GA4 account is to go into Admin>Data Streams>click on your data stream and see this:
  • A screenshot of a computer

Description automatically generated
  • Your Google G-Tag ID should match your Measurement ID and flow to GA4 for your site domain.