Planet4 GPCH Optimize #5 in Analytics & Tracking
A/B Testing and Personalization for Planet4 and Mixpanel
by Stefan Dürrenberger/Greenpeace Switzerland · github.com/greenpeaceschweiz/planet4-gpch-plugin-optimize
★ 4stars
1.8kcomposer installs
1forks
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/greenpeaceschweiz/planet4-gpch-plugin-optimize/archive/refs/heads/main.zipAlso on Packagist as greenpeace/planet4-gpch-plugin-optimize:
composer require greenpeace/planet4-gpch-plugin-optimizeFrom the readme
Planet4 GPCH Optimize Plugin
Testing and personalization functionality for WordPress/Planet4 websites that use Mixpanel for web analytics.
Content optimizations can now be used in two modes:
- Experiment: tracked optimization that sends experiment events to the configured analytics destination.
- Personalization: tailored content that does not send experiment events.
Functionality
- Set up in-page content optimizations directly from the Gutenberg editor in either Experiment or Personalization mode
- Split URL testing directly from the Gutenberg editor
- Weighted random targeting for content variants (e.g. 70% variant A, 30% variant B)
- Personalized content bases on:
- URL parameters (including UTM tags)
- localStorage and sessionStorage
- Sends experiment data either directly to the Mixpanel JavaScript SDK or to dataLayer (Tag Manager) when a content optimization is in Experiment mode
In-Page Optimization Modes
When editors insert a content optimization block, they are asked whether they are creating an Experiment or Personalization. The selected mode can also be changed later in the block settings.
- Experiment mode is intended for A/B tests and multivariate tests
Read the full README on GitHub →
Releases
| Tag | Published | Asset | Downloads |
|---|---|---|---|
| v0.1.0 | Feb 19, 2025 | — | — |