Title: Can&#039;t validate code
Last modified: August 21, 2016

---

# Can't validate code

 *  Resolved [dustinjw](https://wordpress.org/support/users/dustinjw/)
 * (@dustinjw)
 * [13 years ago](https://wordpress.org/support/topic/cant-validate-code/)
 * Hello;
 * I’ve added the bit of code next to <head> in my php file, but now I’m getting
   this message when I try to validate.
 * Original:
    Experiment code not in section. Experiment code found after the Google
   Analytics tracking code:line:74, column:23, line:106, column:1. Variation 1: 
   Experiment code found after the Google Analytics tracking code:line:74, column:
   23, line:106, column:1. Note: If you’re sure the pages are properly set up, you
   can still start the experiment.
 * I also used a plugin for my Google Analytics code as well and obviously it’s 
   placed before <head>. Is there a simple way I can get around this? I’m a tad 
   shy with html and would like to reduce how much I have to mess with code, if 
   possible.
 * My website is [http://www.jetcopywriting.com](http://www.jetcopywriting.com).
 * Thanks for your help.
 * [http://wordpress.org/extend/plugins/google-content-experiments/](http://wordpress.org/extend/plugins/google-content-experiments/)

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [Glenn Mulleners](https://wordpress.org/support/users/glennm/)
 * (@glennm)
 * [13 years ago](https://wordpress.org/support/topic/cant-validate-code/#post-3749786)
 * Please have a look at the theme files again. I think you inserted `<?php do_action('
   wpe_gce_head' ); ?>` after the closing `</head>` tag instead of right after `
   <head>`.
 *  Thread Starter [dustinjw](https://wordpress.org/support/users/dustinjw/)
 * (@dustinjw)
 * [13 years ago](https://wordpress.org/support/topic/cant-validate-code/#post-3749787)
 * Ah, rookie mistake. That fixed it. Thanks.
 *  Plugin Author [Glenn Mulleners](https://wordpress.org/support/users/glennm/)
 * (@glennm)
 * [13 years ago](https://wordpress.org/support/topic/cant-validate-code/#post-3749788)
 * No problem Dustin, I’m glad I could help 🙂
 * If you found this plugin useful, I’d appreciate if you would help other people.
 * There are several things you can do:
 * – Rate the plugin
    – Vote that the plugin works (with the WordPress version you’re
   currently using). – Write a review for the plugin – A combination of the steps
   above
 * I would be most grateful for your contribution!

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Can't validate code’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/google-content-experiments_9db5c0.
   svg)
 * [Google Content Experiments](https://wordpress.org/plugins/google-content-experiments/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/google-content-experiments/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/google-content-experiments/)
 * [Active Topics](https://wordpress.org/support/plugin/google-content-experiments/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/google-content-experiments/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/google-content-experiments/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Glenn Mulleners](https://wordpress.org/support/users/glennm/)
 * Last activity: [13 years ago](https://wordpress.org/support/topic/cant-validate-code/#post-3749788)
 * Status: resolved