{"id":19144,"date":"2012-07-22T06:56:38","date_gmt":"2012-07-22T06:56:38","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/google-content-experiments\/"},"modified":"2013-12-14T08:01:52","modified_gmt":"2013-12-14T08:01:52","slug":"google-content-experiments","status":"publish","type":"plugin","link":"https:\/\/wordpress.org\/plugins\/google-content-experiments\/","author":6650495,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"1.0.3","stable_tag":"1.0.3","tested":"3.7.41","requires":"3.4.0","requires_php":"","requires_plugins":"","header_name":"Google Content Experiments","header_author":"Glenn Mulleners","header_description":"","assets_banners_color":"9db5c0","last_updated":"2013-12-14 08:01:52","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"","header_author_uri":"http:\/\/wp-expert.nl","rating":4.3,"author_block_rating":0,"active_installs":100,"downloads":18026,"num_ratings":15,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":[],"upgrade_notice":{"1.0":"<ul>\n<li>Initial release<\/li>\n<\/ul>"},"ratings":{"1":"2","2":0,"3":0,"4":"2","5":"11"},"assets_icons":[],"assets_banners":{"banner-772x250.png":{"filename":"banner-772x250.png","revision":"575659","resolution":"772x250","location":"assets"}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0.0","1.0.1","1.0.2","1.0.3"],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":"821717","resolution":"1","location":"assets"}},"screenshots":{"1":"Meta box to insert the experiment code at the post\/page edit screen"},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[32900],"plugin_category":[],"plugin_contributors":[81755],"plugin_business_model":[],"class_list":["post-19144","plugin","type-plugin","status-publish","hentry","plugin_tags-google-content-experiment","plugin_contributors-glennm","plugin_committers-glennm"],"banners":{"banner":"https:\/\/ps.w.org\/google-content-experiments\/assets\/banner-772x250.png?rev=575659","banner_2x":false,"banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/google-content-experiments_9db5c0.svg","icon_2x":false,"generated":true},"screenshots":[{"src":"https:\/\/ps.w.org\/google-content-experiments\/assets\/screenshot-1.png?rev=821717","caption":"Meta box to insert the experiment code at the post\/page edit screen"}],"raw_content":"<!--section=description-->\n<p>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.<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Upload the <code>google-content-experiments<\/code> folder to the <code>\/wp-content\/plugins\/<\/code> directory<\/li>\n<li>Activate the Google Content Experiments plugin through the 'Plugins' menu in WordPress<\/li>\n<li>At the post\/page edit screen, check the box to activate the Content Experiment for that post\/page<\/li>\n<li>Insert your experiment code<\/li>\n<li>Publish the post\/page<\/li>\n<\/ol>\n\n<h4>Supported themes and theme frameworks<\/h4>\n\n<ul>\n<li>Child themes based on the <a href=\"http:\/\/www.studiopress.com\/\" title=\"Genesis Framework\">Genesis Framework<\/a><\/li>\n<li>Themes using the <a href=\"http:\/\/infinity.presscrew.com\/\" title=\"Infinity\">Infinity<\/a> WordPress Theming Engine<\/li>\n<li><a href=\"http:\/\/thematictheme.com\/\" title=\"Thematic Theme\">Thematic<\/a><\/li>\n<li><a href=\"http:\/\/wordpress.org\/extend\/themes\/pagelines\/\" title=\"PageLines\">PageLines<\/a><\/li>\n<\/ul>\n\n<p>If your theme is not listed in the supported themes, you need to perform the following steps:<\/p>\n\n<ol>\n<li>Within your theme, locate the file where the <code>&lt;head&gt;<\/code> tag is inserted (probably something like header.php)<\/li>\n<li>Place <code>&lt;?php do_action( 'wpe_gce_head' ); ?&gt;<\/code> right after <code>&lt;head&gt;<\/code><\/li>\n<li>Save the file<\/li>\n<\/ol>\n\n<p>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 <code>&lt;head&gt;<\/code> tag.<\/p>\n\n<!--section=faq-->\n<dl>\n<dt>How do I setup a content experiment?<\/dt>\n<dd><p>Please see <a href=\"http:\/\/support.google.com\/analytics\/bin\/answer.py?hl=en&amp;answer=1745216\" title=\"Run an Experiment: Configure &amp; Modify\">this page<\/a>.<\/p><\/dd>\n<dt>Error message: 'Call to undefined function wp_get_theme'<\/dt>\n<dd><p>The function <code>wp_get_theme<\/code> exists since WordPress 3.4.0. Try to update to the latest version of WordPress and see if that resolves the issue.<\/p><\/dd>\n<dt>Error message: 'Experiment code missing the cookie domain name declared in tracking code'<\/dt>\n<dd><p>The Google Analytics code modifies the cookie domain, but this modification is not present in the experiment code.\nYou should add some extra code to the code you get from Google.<\/p>\n\n<p><em>Example:<\/em><\/p>\n\n<p>In your Google Analytics code there is some code like <code>['_setDomainName', 'example.com']<\/code>. You should add the following code <em>above<\/em> the experiment code you got from Google:<\/p>\n\n\n    _udn = \"example.com\";\n    \n\n<p>In total, the experiment code you put in the Experiment Code field of the GCE plugin should look like:<\/p>\n\n\n    _udn = \"example.com\";\n    \n\n<pre><code>&lt;!-- Google Analytics Experiment code --&gt;\n... Contents of the experiment code ...\n&lt;!-- End of Google Analytics Experiment code --&gt;\n<\/code><\/pre>\n\n<p>For more info about error messages go to the <a href=\"http:\/\/support.google.com\/analytics\/bin\/answer.py?hl=en&amp;answer=2364634\" title=\"Code-Checking Errors\">Code-Checking Errors<\/a> page.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>1.0.3<\/h4>\n\n<ul>\n<li>Tested compatibility with WordPress 3.6<\/li>\n<li>Fixed some notices of undefined variables<\/li>\n<li>Updated class-wpe-GCE.php and admin\/class-wpe-GCEAdmin.php according to WordPress PHP Coding Standards<\/li>\n<li>Updated language files<\/li>\n<li>Updated screenshot<\/li>\n<\/ul>\n\n<h4>1.0.2<\/h4>\n\n<ul>\n<li>Updated Genesis support to be compatible with Genesis 2.0 to support HTML5 child themes<\/li>\n<li>Added metabox to activate the experiment to the Add new post\/pages\/custom post type screens<\/li>\n<li>Added support for Infinity<\/li>\n<li>Added support for Thematic<\/li>\n<li>Added support for PageLines<\/li>\n<\/ul>\n\n<h4>1.0.1<\/h4>\n\n<ul>\n<li>Fixed bug that inserted experiment code when displaying multiple posts (e.g. on category pages)<\/li>\n<li>Updated Dutch translation<\/li>\n<\/ul>\n\n<h4>1.0<\/h4>\n\n<ul>\n<li>Initial release<\/li>\n<\/ul>","raw_excerpt":"This plugin enables you to use Google Content Experiments on your WordPress site.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/19144","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=19144"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/glennm"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=19144"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=19144"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=19144"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=19144"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=19144"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=19144"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}