• I am running google ads on my website and needed to add a tracker tag at the end of of my theme header (header.php). However adding the code that google gave me an error reading “Your PHP code changes were not applied due to an error on line 365 of file wp-content/themes/Divi-child/header.php. Please fix and try saving again.syntax error, unexpected ‘<‘, expecting end of file” appears.

    I am a paralegal and not a tech person. I tried to do some research but honestly cannot figure it out. I am including the code from Google below. Any help would be greatly appreciated ! thank you !

    <!-- Google Tag (gtag.jk) -->
    <script async src="https://www.googlemanager.com/gtag/js?id=WA-114678663300">
    </script>
    <script>
       window.dataLayer = window.dataLayer || [] ;
       function gtag(){dataLayer.push(arguments) ; }
       gtag('js', new Date());
    
       gtag(config'), 'AW-11467866330');
    </script>
    

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Issue with adding Google tag’ is closed to new replies.