Description
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.
Screenshots
Installation
- Upload the
google-content-experiments
folder to the/wp-content/plugins/
directory - Activate the Google Content Experiments plugin through the ‘Plugins’ menu in WordPress
- At the post/page edit screen, check the box to activate the Content Experiment for that post/page
- Insert your experiment code
- Publish the post/page
Supported themes and theme frameworks
- Child themes based on the Genesis Framework
- Themes using the Infinity WordPress Theming Engine
- Thematic
- PageLines
If your theme is not listed in the supported themes, you need to perform the following steps:
- Within your theme, locate the file where the
<head>
tag is inserted (probably something like header.php) - Place
<?php do_action( 'wpe_gce_head' ); ?>
right after<head>
- Save the file
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.
FAQ
- How do I setup a content experiment?
-
Please see this page.
- Error message: ‘Call to undefined function wp_get_theme’
-
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. - Error message: ‘Experiment code missing the cookie domain name declared in tracking code’
-
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.
Reviews
Contributors & Developers
“Google Content Experiments” is open source software. The following people have contributed to this plugin.
ContributorsTranslate “Google Content Experiments” into your language.
Interested in development?
Browse the code, check out the SVN repository, or subscribe to the development log by RSS.
Changelog
1.0.3
- Tested compatibility with WordPress 3.6
- Fixed some notices of undefined variables
- Updated class-wpe-GCE.php and admin/class-wpe-GCEAdmin.php according to WordPress PHP Coding Standards
- Updated language files
- Updated screenshot
1.0.2
- Updated Genesis support to be compatible with Genesis 2.0 to support HTML5 child themes
- Added metabox to activate the experiment to the Add new post/pages/custom post type screens
- Added support for Infinity
- Added support for Thematic
- Added support for PageLines
1.0.1
- Fixed bug that inserted experiment code when displaying multiple posts (e.g. on category pages)
- Updated Dutch translation
1.0
- Initial release