• I am trying to run a Google Analytics split test experiment to test 3 different landing pages which I will direct traffic to through a Google Adwords Campaign. I made it to the part where I am supposed to put the experiment code after the <HEAD> tag (I think?)

    Problem I am having is I can’t find where the <HEAD> tag is. So where am I supposed to paste this code.

    Also confused about what to do with experiment ID and key.

    Any help would be greatly appreciated.

Viewing 1 replies (of 1 total)
  • I assume that you’ll be inserting some HTML code with script tags? To be inserted in your child theme’s functions.php:

    function add_to_head() {
    echo <<<'HTML'
    // so you insert whatever code you need here after deleting this text
    HTML;
    }
    add_action('wp_head', 'add_to_head');

    As for the experiment ID and key you will have to read the documentation or try Googling around ??

Viewing 1 replies (of 1 total)
  • The topic ‘Google Analytics Split Testing Help Please!’ is closed to new replies.