title: WordPress insert Google Tag Manager code in head of specifc page
body: <p>Having a problem trying to insert Google Tag Manager events into the head of just one page of my site.</p>
  <p>I have this code within my functions.php:</p>
  <pre><code>function dcl_hook_javascript() {
      if (is_page ('5722')) { 
      ?&gt;
      &lt;!-- Global site tag (gtag.js) - Google Ads: 123456789 --&gt;
      &lt;script async src=&quot;https://www.googletagmanager.com/gtag/js?id=AW-123456789&quot;&gt;&lt;/script&gt;
      &lt;script&gt;
        window.dataLayer = window.dataLayer || [];
        function gtag(){dataLayer.push(arguments);}
        gtag('js', new Date());
  
        gtag('config', 'AW-123456789');
      &lt;/script&gt;
      &lt;!-- Event snippet for Free Trial Request Form Submitted conversion page --&gt;
      &lt;script&gt;
        gtag('event', 'conversion', {'send_to': 'AW-123456789/abcABCDdefEBEOCfx9AC'});
      &lt;/script&gt;
          &lt;?php
        }
      }
      add_action('wp_head', 'dcl_hook_javascript');
  </code></pre>
  <p>and it's just not showing up on the page. How can I fix this?</p>