Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #944033

    Hello support,

    Originally I added the following tracking code to Enfold – Google services – Google Analytics Tracking Code (substituting ‘tracking code’ for our code)

    <script>
    (function(i,s,o,g,r,a,m){i[‘GoogleAnalyticsObject’]=r;i[r]=i[r]||function(){
    (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
    m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
    })(window,document,’script’,’https://www.google-analytics.com/analytics.js&#8217;,’ga’);

    ga(‘create’, ‘Tracking code’, ‘auto’);
    ga(‘send’, ‘pageview’);

    </script>

    I then noticed our code is appearing in the header for all users to see. After looking at some forum posts I changed the above to just the tracking ID but with no joy the code is still appearing above the menu. I’ve taken a look at the header.php but can’t see any reference to google analytics, can you help?

    #944085

    Hey Butter_Cheese,
    Your tracking code in Enfold > Google services > Google Analytics Tracking Code should look like this:
    2018-04-19_065921
    this should not cause any errors, please ensure there in no other code in there.
    Yet I see you also have “Google Analytics by MonsterInsights plugin v7.0.5” adding code in your header, do you want to use both?
    Your incorrect “UA-116433851-1” should not be showing though, try disabling your plugins. If that resolves the issue, reactivate each one individually until you find the cause.
    If this doesn’t help, Can you please include a admin login in the private content area so we can take a closer look.

    Best regards,
    Mike

    #944117

    Thank you, Mike. I replaced the tracking code in Enfold and went through my plugins – It was the SV Simpler SEO settings that was causing it. Thanks again for your help.

    #944128

    Hi,

    Glad you figured it out! :)

    For your information, you can take a look at Enfold documentation here – http://kriesi.at/documentation/enfold/
    And if there are features that you wish Enfold had, you can request them and vote the requested ones here – https://kriesi.at/support/enfold-feature-requests/
    For any other questions or issues, feel free to start new threads under Enfold sub forum and we will gladly try to help you :)

    Best regards,
    Yigit

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Tracking code appearing in header’ is closed to new replies.