WordPress.org

Ready to get started?Download WordPress

Forums

Google Content Experiments
[resolved] Can't validate code (4 posts)

  1. dustinjw
    Member
    Posted 1 year ago #

    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.

    Thanks for your help.

    http://wordpress.org/extend/plugins/google-content-experiments/

  2. glennm
    Member
    Plugin Author

    Posted 1 year ago #

    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>.

  3. dustinjw
    Member
    Posted 1 year ago #

    Ah, rookie mistake. That fixed it. Thanks.

  4. glennm
    Member
    Plugin Author

    Posted 1 year ago #

    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!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.