If you have troubles since the update to WordPress 4.5 please read this post before opening a new thread.

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
  • #22105

    Where do I put the analytic experiment code to do this? Google says “paste this experiment code immediately after the opening head tag at the top of your original page that you want to experiment on.” However I’m not sure where to find the page code within the word press editor.

    <!– Google Analytics Content Experiment code –>

    <script>function utmx_section(){}function utmx(){}(function(){var….

    …. valueOf()+(h?’&utmxhash=’+escape(h.substr(1)):”)+

    ‘” type=”text/javascript” charset=”utf-8″></sc’+’ript>’)})();


    <!– End of Google Analytics Content Experiment code –>



    The head tag can be found in wp-content/themes/replete/header.php – open up the file and place your code below:


    Best regards,



    How do I know it only effects the page I’m working on and not all the pages?


    Hi camillaanders,

    The header.php file will effect all pages on your site. You would need to use a plugin or conditional statement to make code only show on a specific page.

    See: http://codex.wordpress.org/Conditional_Tags




    Thanks, I’ll try it



    I hope it worked out?




    Still testing, but it looks like it works. Thank you!


    Still testing… It looks like it works! Thank you!



    Great :)

    Best regards,


Viewing 9 posts - 1 through 9 (of 9 total)

The topic ‘Google analytics experiment code’ is closed to new replies.