HTML Code in All pages

Hello,
I have added this remarketing code using the “Header and Footer Scripts” Plugin as per your suggestion.
I inserted the below given code only in the Home Page. Can you please let me know if the code is inserted right and is it reflecting in all pages ?

Paste it in between the tags of every page of your website.

 <!-- Global site tag (gtag.js) - Google Ads: 796879083 -->
 <script async src="https://www.googletagmanager.com/gtag/js?id=AW-796879083"></script>
 <script>
 window.dataLayer = window.dataLayer || [];
 function gtag(){dataLayer.push(arguments);}
 gtag('js', new Date());

 gtag('config', 'AW-796879083');
 </script>
--------------------

Hello there,

Do you have a link to your site to share here so I can check?

Regards,
Kharis

www.rockwayindia.com

Hello there,

Try this snippet:

    add_action('wp_head', 'sydney_child_add_head_script');
    function sydney_child_add_head_script() {
      ?>
      <script async src="https://www.googletagmanager.com/gtag/js?id=AW-796879083"></script>
      <script>
      window.dataLayer = window.dataLayer || [];
      function gtag(){dataLayer.push(arguments);}
      gtag('js', new Date());
     
      gtag('config', 'AW-796879083');
      </script>
      <?php 
    }

and add it to your child theme’s functions.php file. Or use a plugin that allows the same purpose like Code Snippets or Functionality.

Regards,
Kharis

I have implemented. Please check if it’s reflecting in all pages. I am bit poor in coding.

I checked with web browser’s inspector tool on your contact page. And the code does present in there.

You can check it yourself by visiting some of your pages and view source them.

Regards,
Kharis

Hey thanks for the support.

You’re welcome!

Please let us know in a new topic if you have any further questions, or if we can provide you with any other assistance.

Regards,
Kharis