Are you first timer at Why not join us and start exchange your programming knowledge with everyone. Register today!

PHP - Multiple nodes condition

0 votes
added Nov 6, 2019 in PHP by LC Marshal Captain (25,800 points)
  $path = current_path();
  if(in_array($path,['node/21','node/22','node/23'])): ?>
    <script async src=""></script>
      window.dataLayer = window.dataLayer || [];
      function gtag(){dataLayer.push(arguments);}
      gtag('js', new Date());

      gtag('config', 'XX-XXXXXXXXX');
<?php endif; ?>


Please log in or register to response this reference. - Malaysia's programming knowledge sharing platform, where everyone can share their finding as reference to others.