I am trying to add a custom html tag via my Google Tag Manager. I followed this guide: how to add Custom html, but the tag is not added.
This is what I did.
I created a new tag and added my code via the custom html. The code below is what i added to the HTML section.
<script>
console.log('Hello test two!');
</script>
<div>
<span>Hello testing three this works!</span>
</div>
I then created a trigger for the tag. The trigger is the “All Pages” default trigger.
I then did a preview test to see if the tag is triggered. It is indeed triggered. However when I then viewed the header of my webpage I cannot find the tag.
I also tried this trigger “Page view- DOM Ready” but it’s still not working.