Mobile app version of vmapp.org
Login or Join
Miguel251

: GTM is not triggering custom javascript variable value I am trying to add a meta tag to website using Google tag manager. But GTM is not triggering the custom javascript variable value. (trigger

@Miguel251

Posted in: #Analytics #GoogleTagManager #Gtm #MetaTags

I am trying to add a meta tag to website using Google tag manager. But GTM is not triggering the custom javascript variable value. (trigger is happening, but value is missing)

My Custom HTML tag in GTM

<script>
var m = document.createElement('meta');
m.name = 'subject';
m.content = {{Page Heading Variable}};
document.head.appendChild(m);
</script>


GTM Debug Screenshot



Page Heading Variable: It's a javascript GTM variable to extract the page heading.

10% popularity Vote Up Vote Down


Login to follow query

More posts by @Miguel251

0 Comments

Sorted by latest first Latest Oldest Best

Back to top | Use Dark Theme