#A/B Testing with Next.js and Google Analytics

1 messages · Page 1 of 1 (latest)

zinc flint
#

Hi everyone just wondering if anyone found a good solution for A/B testing and optimizing for Google Analytics (GA4) metrics.

We are hoping to doing server-side variant splitting and have been following the example at https://vercel.com/templates/next.js/ab-testing-google-optimize

However the example doesn't really describe how to set things up on the Google Optimize side. We've tried it but:

  1. Getting some weird issues with Google Optimize
  2. Google optimize will be End-of-Life in September 😦

So, anyone got A/B testing with Next.js and GA4 working nicely? Any services you can recommend?

final bobcat
#

Not specific to GA4, and more specific to AB Testing with NextJS, but my general recommendation is: godspeed.

I've been through the ringer with Optimizely Fullstack, Statsig, Launch Darkly, and now Amplitude Experiment when it comes to NextJS ISR, and nothing is remotely good.

I don't blame either the AB solutions or NextJS, it's just a byproduct of SSR/ISR being "new" again and most AB testing solutions were kitchen-sink on the client side, but now everyone (product and design) is obsessed with no-flicker AB testing.

So here we are.