Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #876715

    Hello,
    I have been asked to add Google Adword snippets to the following area
    * The header of all pages
    * The header of all pages above the closing head tag
    * The footer
    I do utilize a child enfold theme.
    What is the easiest or best way for me to add the code? Thanks in advance for the help – Perry

    This is what I was sent:

    1. Please add this code to the footer.
    <!– Event snippet for footer conversion page –>
    <script>
    gtag(‘event’, ‘conversion’, {‘send_to’: ‘AW-xxxxxxxxxxxxxxxxxxxxxx’});
    </script>

    2. Please add this code to the header on all pages.

    <!– Global site tag (gtag.js) – Google AdWords: xxxxxxxxxxxx –>
    <script async src=”https://www.googletagmanager.com/gtag/js?id=xxxxxxxxxxxx”></script&gt;
    <script>
    window.dataLayer = window.dataLayer || [];
    function gtag(){dataLayer.push(arguments);}
    gtag(‘js’, new Date());

    gtag(‘config’, ‘AW-843671820’);
    </script>

    3. Please add this code to the header of all pages above the closing head tag.

    <script type=”text/javascript”>
    (function(a,e,c,f,g,h,b,d){var k={ak:”xxxxxx”,cl:”cxZ4CPyWm3kxxxxxxx”,autoreplace:”408-559-3403″};a[c]=a[c]||function(){(a[c].q=a[c].q||[]).push(arguments)};a[g]||(a[g]=k.ak);b=e.createElement(h);b.async=1;b.src=”//www.gstatic.com/wcm/loader.js”;d=e.getElementsByTagName(h)[0];d.parentNode.insertBefore(b,d);a[f]=function(b,d,e){a[c](2,b,k,d,null,new Date,e)};a[f]()})(window,document,”_googWcmImpl”,”_googWcmGet”,”_googWcmAk”,”script”);
    </script>

    #876720
Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.