
-
AuthorPosts
-
April 19, 2018 at 11:14 am #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’,’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?
April 19, 2018 at 1:12 pm #944085Hey Butter_Cheese,
Your tracking code in Enfold > Google services > Google Analytics Tracking Code should look like this:
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,
MikeApril 19, 2018 at 2:52 pm #944117Thank 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.
April 19, 2018 at 3:32 pm #944128Hi,
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 -
AuthorPosts
- The topic ‘Tracking code appearing in header’ is closed to new replies.