
As of August 2019, Google no longer allows new Experiments using the Experiments API.
So this project will not get updated.
Please use Google Optimize.
As part of Analytics, Google offers a free content testing service called Google Experiments.
NOTE: Google is deprecating Analytics Content Experiments.
Google Optimize is the free, preferred way to run experiments. Analytics Content Experiments remain available but are being deprecated in the future.
We are currently supporting this plugin, but will discontinue support as the Content Experiments API becomes deprecated.
In the simple (page) form of Google Experiments, the user is redirected to a separate page which contains the variation. There are a number of plugins that can help you implement this scheme.
The Simple Content Experiments plugin implements the “Client-side” model described in Content Experiments Without Redirects (Browser-only implementation)
This scheme is more complicated to set up, but allows more flexibility.
The Simple Content Experiments plugin allows you to define sections within a single page that contain multiple variations with simple shortcodes..
For example, you can test if one call-to-action image gets more clicks than another.
To use this plugin, you will need:
Sample content experiment:
[experiment id="EXPERIMENT ID"] [ex_variant] content for first variation [/ex_variant] [ex_variant] content for second variation [/ex_variant] [/experiment]
Anchors within an experiment variation get an additional class: “xvariantclick”
This class can be used with Google Tag Manager to create a rule that responds to clicks on those elements.
Note: If you are using Google Tag Manager, you need to create a trigger and tag to have the Experiment run properly.
See the section called “Google Tag Manager” for information on how to set this up.
To track clicked items within an experiment, use these new events in your goal definitions.
You can look for an event where Category = “experiment” or whatever you named your category above.
You can enable JavaScript console log debugging messages by adding the following to your wp-config.php file:
/** Enable console log debugging messages for the Simple Content Experiments plugin: */ define('WPSCE_DEBUG', true); As simple as “Simple Content Experiments” is, Google Optimize is even simpler. And the recommended solution if you’re running GTM.
But if you still want to use the old Content Experiments, you can. (For now.)
When running Google Tag Manager, sometimes the Experiments API will run before Analytics is loaded and ready.
Don’t worry if that is just programmer-speak, you just need to add a new Tag and Trigger.
Obviously, none of this applies if you’re not running Tag Manager.
I called mine “AnalyticsLoaded” but you can name it whatever you want.
“Page View”
“Window Loaded”
“All Page Views”
Whatever you want. I called mine “SimpleExperimentPlugin”
“Custom HTML” tag
<script> if("function" == typeof(content_experiment.run_experiment)){ content_experiment.run_experiment(); } </script> “AnalyticsLoaded” or whatever you named the trigger above.
While jQuery is probably already available in your theme, in the unlikely event that it isn’t, you can use a plugin like WP jQuery Plus to add it to your site.
Starting from $0 per month.
Rating
Reviewers
3 reviews
Tags
Developed By
firebrandllc
Quick & Easy
Common Ninja has a large selection of powerful Wordpress plugins that are easy to use, fully customizable, mobile-friendly and rich with features — so be sure to check them out!
Testimonial plugins for Wordpress
Contact Form plugins for Wordpress
Maps plugins for Wordpress
Translation plugins for Wordpress
Chat plugins for Wordpress
Slider plugins for Wordpress
Reviews plugins for Wordpress
Contact plugins for Wordpress
Galleries plugins for Wordpress
SEO plugins for Wordpress
Forms plugins for Wordpress
Comments plugins for Wordpress
Backup plugins for Wordpress
Privacy plugins for Wordpress
Optimize plugins for Wordpress
Tabs plugins for Wordpress
Social Sharing plugins for Wordpress
Events Calendar plugins for Wordpress
Comments plugins for Wordpress
Social Feeds plugins for Wordpress
Social Sharing plugins for Wordpress
Portfolio plugins for Wordpress
Video Player plugins for Wordpress
popup plugins for Wordpress
SiteMap plugins for Wordpress
Payment plugins for Wordpress
Coming Soon plugins for Wordpress
Inventory plugins for Wordpress
Testimonials plugins for Wordpress
Portfolio plugins for Wordpress
Membership plugins for Wordpress
Forms plugins for Wordpress
Analytics plugins for Wordpress
Events Calendar plugins for Wordpress
Sliders plugins for Wordpress
Analytics plugins for Wordpress
Reviews plugins for Wordpress
Security plugins for Wordpress
Ads plugins for Wordpress
Music Player plugins for Wordpress
Countdown plugins for Wordpress
Email Marketing plugins for Wordpress
Membership plugins for Wordpress
Ecommerce plugins for Wordpress
Customer Support plugins for Wordpress
Video Player plugins for Wordpress
Tabs plugins for Wordpress
Social Feeds plugins for Wordpress
Common Ninja Apps
Browse our extensive collection of compatible plugins, and easily embed them on any website, blog, online store, e-commerce platform, or site builder.
Add a flexible size chart with visual guides and category tabs to help users choose accurate measurements while shopping.
Use a scroll progress bar that visually tracks reading on the page, improves navigation, and keeps visitors aware of their position.
Show Glassdoor reviews to highlight employee feedback, strengthen employer brand, and help candidates trust your company.
Create headlines with background images that blend text and visuals and let you control animation, position, and fonts.
Use Collapsible Content sections to structure information on your site and make it easier for visitors to find what they need.
Add a podcast player to your site to embed and organize episodes, provide responsive playback, and keep listeners engaged.
Show TikTok videos with a TikTok carousel that arranges clips in a smooth, customizable layout to boost engagement and keep visitors watching.
Display social proof avatars that show user activity and ratings, build trust instantly, and help visitors feel confident about your credibility.
Add a translation widget to your site so users can switch languages easily and access content in their preferred language.
Collect candidate information with a job application form that organizes submissions, streamlines hiring, and helps you manage applicants efficiently.
Create and customize product catalogs with a catalog widget that organizes items clearly, improves browsing, and helps visitors explore your offerings easily.
Add animated headlines to draw attention to key messages and improve user engagement through visual emphasis.
More plugins
The Common Ninja Search Engine platform helps website builders find the best site widgets, apps, plugins, tools, add-ons, and extensions! Compatible with all major website building platforms - big or small - and updated regularly, our Search Engine tool provides you with the business tools your site needs!
