
This plugin enables you to use Google Content Experiments on your WordPress site.
Per August 1, 2012, Google discontinued the used of their splittesting software Google Website Optimizer. Google Analytics now contains a function called Content Experiments which can be used to splittest content on your website. This plugin enables you to use Content Experiments on your WordPress site.
google-content-experiments folder to the /wp-content/plugins/ directoryIf your theme is not listed in the supported themes, you need to perform the following steps:
<head> tag is inserted (probably something like header.php)<?php do_action( 'wpe_gce_head' ); ?> right after <head>By using the plugin, add the Google Content Experiments code to a page and view the source code of the web page to verify that the Google Content Experiments code is actually inserted after the <head> tag.
Please see this page.
The function wp_get_theme exists since WordPress 3.4.0. Try to update to the latest version of WordPress and see if that resolves the issue.
The Google Analytics code modifies the cookie domain, but this modification is not present in the experiment code.
You should add some extra code to the code you get from Google.
Example:
In your Google Analytics code there is some code like ['_setDomainName', 'example.com']. You should add the following code above the experiment code you got from Google:
_udn = “example.com”;
In total, the experiment code you put in the Experiment Code field of the GCE plugin should look like:
_udn = “example.com”;
<!-- Google Analytics Experiment code --> ... Contents of the experiment code ... <!-- End of Google Analytics Experiment code --> For more info about error messages go to the Code-Checking Errors page.