Google Analytics error…

  • Resolved
    Posted in: Highend WP Theme  
  • Customer
    Daniel_E_Lane
    December 8, 2018 at 5:52 am #133370

    I just got the Google Analytics info from them and pasted the entire code into the tracking code window on the Highend General Settings page.The code I pasted there is

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

    gtag(‘config’, ‘UA-*********-1’);
    </script>

    (I just starred out the account #’s there so it would be no big deal. The actual numbers are in the code pasted in)

    The problem is, when I pasted that in, I got an error on the first line. The error reads…

    Expected an identifier and instead saw ‘<!’
    Cannot read property ‘identifier’ of undefined

    Not a clue as to what this means since this is the only code I can get from google and the theme instructions say to paste in the entire code. Any help would be greatly appreciated!!!

    Sorry, this forum is for verified users only. Please Login or Register to continue

Comments are closed.