Title: Coding Showing on Published Pages
Last modified: August 19, 2016

---

# Coding Showing on Published Pages

 *  [nchorp](https://wordpress.org/support/users/nchorp/)
 * (@nchorp)
 * [16 years, 4 months ago](https://wordpress.org/support/topic/coding-showing-on-published-pages/)
 * Curious about what might have led to the following code showing up on my published
   pages at the top of each one, and how to make it disappear again!
 * _gaq.push([‘_trackPageview’]); (function() { var ga = document.createElement(‘
   script’); ga.type = ‘text/javascript’; ga.async = true; ga.src = (‘https:’ ==
   document.location.protocol ? ‘[https://ssl&#8217](https://ssl&#8217); : ‘[http://www&#8217](http://www&#8217);)
   + ‘.google-analytics.com/ga.js’; (document.getElementsByTagName(‘head’)[0] ||
   document.getElementsByTagName(‘body’)[0]).appendChild(ga); })();
 * Thanks for any guidance!

Viewing 1 replies (of 1 total)

 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [16 years, 4 months ago](https://wordpress.org/support/topic/coding-showing-on-published-pages/#post-1332499)
 * Looks like part of the Google Analytics code. I can only guess that you’ve inadvertently
   deleted the initial line or so of the code block – which would make the code 
   display instead of working the way it should do. I’d suggest getting a fresh 
   copy of the Google Analytics code and replacing the faulty block in the relevant
   theme template file.

Viewing 1 replies (of 1 total)

The topic ‘Coding Showing on Published Pages’ is closed to new replies.

## Tags

 * [Coding](https://wordpress.org/support/topic-tag/coding/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 2 participants
 * Last reply from: [esmi](https://wordpress.org/support/users/esmi/)
 * Last activity: [16 years, 4 months ago](https://wordpress.org/support/topic/coding-showing-on-published-pages/#post-1332499)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
