Hi,
I added the 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’, ‘UA-77134686-1’, ‘auto’);
ga(‘send’, ‘pageview’);
</script>
to Analytics tab in the theme panel but it just hangs with the spinning square. If I refresh or reach to the page the field is empty.
Please help, thanks.
<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’, ‘UA-41701780-3’, ‘auto’);
ga(‘send’, ‘pageview’);
</script>
I believed it was something to do with a change in WordPress core 4.5 or 4.5.1
But here is what is really weird:
I have a second copy of this theme on a test site and it works on that site, but not on the live site!
I tried setting permissions on the live site so they are the same as the test site, but that didn’t help.
I installed Debug bar, but it doesn’t show any problem.
Tomorrow, I will install all of the same plugins on the test site and see if makes the spinning square.
(I don’t want to uninstall plugins on the live site unless I really have to.)
I had this issue while trying to launch my site this weekend. Wordfence was blocking the code. I disabled Wordfence while adding the code and it saved immediately.
Once I had all my ads placed, I reenabled Wordfence. Hope this solves this for someone. Took me 2 days to figure it out.
Hi,
It seems wordfence affects all of the theme panel, but there is a setting you can change to make it work properly again: https://forum.tagdiv.com/topic/cant-save-theme-settings/
Thank you!