Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #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>’)})();

    </script><script>utmx(‘url’,'A/B’);</script>

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

    #114234

    Hi!

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

    <head>

    Best regards,

    Peter

    #114235

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

    #114236

    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

    Regards,

    Devin

    #114237

    Thanks, I’ll try it

    #114238

    Hi!

    I hope it worked out?

    Regards,

    Peter

    #114239

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

    #114240

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

    #114241

    Hey!

    Great :)

    Best regards,

    Peter

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

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