• Resolved dustinjw

    (@dustinjw)


    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 https://www.jetcopywriting.com.

    Thanks for your help.

    https://www.ads-software.com/extend/plugins/google-content-experiments/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Glenn Mulleners

    (@glennm)

    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

    (@dustinjw)

    Ah, rookie mistake. That fixed it. Thanks.

    Plugin Author Glenn Mulleners

    (@glennm)

    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.