Title: Google Content Experiments
Author: Glenn Mulleners
Published: <strong>22 de Xullo, 2012</strong>
Last modified: 14 de Decembro, 2013

---

Buscar plugins

![](https://ps.w.org/google-content-experiments/assets/banner-772x250.png?rev=575659)

Este plugin **non se actualizou en máis de 2 anos**. É posible que xa non sexa compatible
ou mantido por ninguén, ou podes ter problemas de compatibilidade cando se usa con
novas versións de WordPress.

![](https://s.w.org/plugins/geopattern-icon/google-content-experiments_9db5c0.svg)

# Google Content Experiments

 Por [Glenn Mulleners](https://profiles.wordpress.org/glennm/)

[Descargar](https://downloads.wordpress.org/plugin/google-content-experiments.1.0.3.zip)

 * [Detalles](https://gl.wordpress.org/plugins/google-content-experiments/#description)
 * [Valoracións](https://gl.wordpress.org/plugins/google-content-experiments/#reviews)
 *  [Instalación](https://gl.wordpress.org/plugins/google-content-experiments/#installation)
 * [Desenvolvemento](https://gl.wordpress.org/plugins/google-content-experiments/#developers)

 [Soporte](https://wordpress.org/support/plugin/google-content-experiments/)

## Descrición

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.

## Capturas

[⌊Meta box to insert the experiment code at the post/page edit screen⌉⌊Meta box 
to insert the experiment code at the post/page edit screen⌉[

Meta box to insert the experiment code at the post/page edit screen

## Instalación

 1. Upload the `google-content-experiments` folder to the `/wp-content/plugins/` directory
 2. Activate the Google Content Experiments plugin through the ‘Plugins’ menu in WordPress
 3. At the post/page edit screen, check the box to activate the Content Experiment 
    for that post/page
 4. Insert your experiment code
 5. Publish the post/page

#### Supported themes and theme frameworks

 * Child themes based on the [Genesis Framework](http://www.studiopress.com/)
 * Themes using the [Infinity](http://infinity.presscrew.com/) WordPress Theming
   Engine
 * [Thematic](http://thematictheme.com/)
 * [PageLines](https://wordpress.org/extend/themes/pagelines/)

If your theme is not listed in the supported themes, you need to perform the following
steps:

 1. Within your theme, locate the file where the `<head>` tag is inserted (probably
    something like header.php)
 2. Place `<?php do_action( 'wpe_gce_head' ); ?>` right after `<head>`
 3. 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.

## Preguntas frecuentes

  How do I setup a content experiment?

Please see [this page](http://support.google.com/analytics/bin/answer.py?hl=en&answer=1745216).

  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](http://support.google.com/analytics/bin/answer.py?hl=en&answer=2364634)
page.

## Comentarios

![](https://secure.gravatar.com/avatar/9aa7377267d50f471d54d529091adb09afa5e61f5ba98b29f76b0e5c72eada2e?
s=60&d=retro&r=g)

### 󠀁[Works well](https://wordpress.org/support/topic/nope-does-not-work-anymore/)󠁿

 [dushonok](https://profiles.wordpress.org/dushonok/) 3 de Setembro, 2016

I tried it with a Genesis child theme – works well. My only problem was to find 
my way in google Experiments UI, which has nothing to do with the plugin 🙂

![](https://secure.gravatar.com/avatar/8577f11323fa111223e49b08cbe1dea51740708b510a645df79e0171f3e2496a?
s=60&d=retro&r=g)

### 󠀁[Does the trick BUT you must add a line of HTML before it works!](https://wordpress.org/support/topic/does-the-trick-but-you-must-add-a-line-of-html-before-it-works/)󠁿

 [fseminario](https://profiles.wordpress.org/fseminario/) 3 de Setembro, 2016 1 
resposta

I had to add “<?php do_action( ‘wpe_gce_head’ ); ?>” to my header.php for this to
work on my theme. Almost thought it didn’t work…maybe this step should be placed
at the top of the installation instructions instead of the bottom

 [ Ler todas as 15 opinións ](https://wordpress.org/support/plugin/google-content-experiments/reviews/)

## Colaboradores e desenvolvedores

“Google Content Experiments” é un software de código aberto. As seguintes persoas
colaboraron con este plugin.

Colaboradores

 *   [ Glenn Mulleners ](https://profiles.wordpress.org/glennm/)

[Traduce “Google Content Experiments” ao teu idioma.](https://translate.wordpress.org/projects/wp-plugins/google-content-experiments)

### Interesado no desenvolvemento?

[Revisa o código](https://plugins.trac.wordpress.org/browser/google-content-experiments/),
bota unha ollada ao[repositorio SVN](https://plugins.svn.wordpress.org/google-content-experiments/),
ou subscríbete ao [log de desenvolvemento](https://plugins.trac.wordpress.org/log/google-content-experiments/)
por [RSS](https://plugins.trac.wordpress.org/log/google-content-experiments/?limit=100&mode=stop_on_copy&format=rss).

## Rexistro de cambios

#### 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

## Meta

 *  Versión **1.0.3**
 *  Última actualización **Fai 13 anos**
 *  Instalacións activas **100+**
 *  Versión de WordPress ** 3.4.0 ou superior **
 *  Probado ata **3.7.41**
 *  Idioma
 * [English (US)](https://wordpress.org/plugins/google-content-experiments/)
 *  [Vista avanzada](https://gl.wordpress.org/plugins/google-content-experiments/advanced/)

## Valoracións

 4.3 de 5 estrelas

 *  [  11 valoracións de 5 estrelas     ](https://wordpress.org/support/plugin/google-content-experiments/reviews/?filter=5)
 *  [  2 valoracións de 4 estrelas     ](https://wordpress.org/support/plugin/google-content-experiments/reviews/?filter=4)
 *  [  0 valoracións de 3 estrelas     ](https://wordpress.org/support/plugin/google-content-experiments/reviews/?filter=3)
 *  [  0 valoracións de 2 estrelas     ](https://wordpress.org/support/plugin/google-content-experiments/reviews/?filter=2)
 *  [  2 valoracións de 1 estrelas     ](https://wordpress.org/support/plugin/google-content-experiments/reviews/?filter=1)

[A túa valoración](https://wordpress.org/support/plugin/google-content-experiments/reviews/#new-post)

[Ver todas as valoracións](https://wordpress.org/support/plugin/google-content-experiments/reviews/)

## Colaboradores

 *   [ Glenn Mulleners ](https://profiles.wordpress.org/glennm/)

## Soporte

Tes algo que dicir? Necesitas axuda?

 [Ver o foro de soporte](https://wordpress.org/support/plugin/google-content-experiments/)