Skip to content

How to add a test in Google Tag Manager (GTM)

Simon Vreeman edited this page Sep 23, 2015 · 3 revisions

How to add a test in Google Tag Manager

This will provide you with a walkthrough to see

  1. Sign up for Google Tag Manager.
  2. Create a container in Google Tag Manager.
  3. Add the container code to your site, so you can start implementing tags via GTM.
  4. Click Variables in the navigation, enable Random Number under utilities.
  5. Click Tags > New > Custom HTML Tag.
  6. Copy paste the example testing code found in this repository. Prepend the code with: <script> and append: </script>.
  7. Don't forget to change the variables and create variants in the code.
  8. Choose the right trigger and save the tag.
  9. Make sure the test works perfectly by previewing the container.
  10. Don't forget to publish the container.
Clone this wiki locally