Title: WordPress strips google analytics code.
Last modified: August 20, 2016

---

# WordPress strips google analytics code.

 *  Resolved [puma10](https://wordpress.org/support/users/puma10/)
 * (@puma10)
 * [14 years, 7 months ago](https://wordpress.org/support/topic/wordpress-strips-google-analytics-code/)
 * Background info
    I have 4 or 5 pages at [http://www.prattrb.com](http://www.prattrb.com)
   that are simple pages built of just html, css and a few small php include files.
   I also have blog section set up with wordpress. One of the includes holds the
   google analytics script in it. This include, called head.php, is met to be put
   before the the closing head tag. I modified my theme to include head.php as well
   as all the simple html pages.
 * The issue.
    When viewing source on all the simple pages described above I get
   the correct output from the include – a link to the javascript file and some 
   actually javascript. When looking at the blog section administered by wordpress
   I only get the javascript link and not the code.
 * Any ideas are much appreciated 🙂

Viewing 1 replies (of 1 total)

 *  Thread Starter [puma10](https://wordpress.org/support/users/puma10/)
 * (@puma10)
 * [14 years, 7 months ago](https://wordpress.org/support/topic/wordpress-strips-google-analytics-code/#post-2370912)
 * Figured out, just a bit of confusion and a few typos. Thanks!

Viewing 1 replies (of 1 total)

The topic ‘WordPress strips google analytics code.’ is closed to new replies.

 * 1 reply
 * 1 participant
 * Last reply from: [puma10](https://wordpress.org/support/users/puma10/)
 * Last activity: [14 years, 7 months ago](https://wordpress.org/support/topic/wordpress-strips-google-analytics-code/#post-2370912)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
