Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
+2 votes
857 views
in Plugins by
I can't insert my analytics code to all my pages. I tried installing a plugin called "google Analytics" but whenever i insert the code and click on save, it will redirect me to my normal user page with a message like "page not found", now i ask a question here on how to resolve that issues and someone answered and said i should insert it to my custom html for header in layout page, but i have done that and when i click on save, it will still redirect me to my normal user interface with the same error message "page not found". please help me out. how can i resolve this issues because i can't insert both my analytics code and my webmaster codes. i have deleted the google analytics plugin wwith the webmaster plugins because of it but still not working. please help me i am a newbie to q2a.
Q2A version: The latest version
by
What is your website address?
by
http://ntchub.com/ is in his profile

1 Answer

0 votes
by

Are you including the <script> tags? If you're putting the code in the box "Custom HTML in <head> section of every page" then it should include the HTML tags. What you put in that box is output exactly as that on the web page. So it should be something like

<script>
(the JS for Analytics here)
</script>
<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>

I can't see any reason why it would cause you to be redirected.

...