Are you guys planning on making a WordPress Plugin...
# announcements
b
Are you guys planning on making a WordPress Plugin?
f
Hi Micha, we’ve thought about it, but we’re not experts on WordPress, so it would take a bit of work.
b
How hard/easy is it to use GrowthBook with WP right now? Does it work with caching on the CDN edge level? (Meaning that there must be some kind of JavaScript "distributing" visitors to variants?)
f
it can work on the edge, but there is nothing written to make this super easy.
👍 1
b
For the edge I'd have to use the JavaScript SDK?
f
you can use any of the SDKs, they all work the same
b
CDN edge cached URLs are not going to trigger a server side SDK, like PHP, right?
f
@future-teacher-7046 ^
f
If you have caching in front of wordpress, then you would need to use the javascript SDK to make changes. I know some hosting providers like WP Engine let you disable caching temporarily on specific URLs, so that's another option - use the PHP SDK and turn off caching for the pages where you're actively running experiments.
👍 1
b
But it is possible to run experiments on the edge with the Javascript SDK only?
f
Are you talking about running the experiments within a CDN edge function? Or running it in a user's browser? Both are possible, but the implementations are different
❤️ 1
b
In the users browser
Also add-on question: What are the SEO implications? The search bot sees both variations?
f
With WordPress, it's a little hacky. Basically, the server would return one version (which SEO would see). Then, you would use javascript to modify the page after it loads. So something like this:
Copy code
if (growthbook.isOn("my-feature")) {
  const el = document.getElementById("myfeature");
  if (el) {
    el.style.display = "block";
  }
}
Experimentation tools with a visual editor are usually better than GrowthBook for these kinds of changes. So Google Optimize, Optimizely, VWO, etc.
b
Now you are breaking my heart 😄 I thought there is a Beta?
f
We do have a beta visual editor, but it's pretty basic at the moment. Good enough for really simple tests, but not anything more complex
b
Can I change heading H1 and site title? Can I change some CSS rules?
That would be way enough for the start
f
You can't change the site title, but you can change H1 text and add css rules
1
👍 1
b
Thanks for the starter lesson! Once I get around to trying to implement something, I'll come bakc and bug you guys some more. By the way, can I install without containers?
306 Views