Try Stellar A/B Testing for Free!

No credit card required. Start testing in minutes with our easy-to-use platform.

← Back to Blog

How to Migrate from Google Optimize to Stellar

Google Optimize was discontinued on September 30, 2023. If you still have the old snippet on your site or experiments you never recreated, this checklist walks you through migrating to Stellar — a free Google Optimize replacement with a visual editor, multiple goals, and GA4 integration.

Migration checklist at a glance

StepActionTime estimate
1Audit active Optimize experiments and export screenshots/notes15–30 min
2Create a free Stellar account2 min
3Remove the Google Optimize container snippet5 min
4Install the Stellar snippet (one line of code)5 min
5Recreate experiments in the visual editor30–60 min per test
6Set up conversion goals and GA4 event forwarding15 min
7Launch and verify variants render correctly10 min

Step 1: Document what you had in Google Optimize

Before touching code, inventory every experiment that was live or paused in Optimize:

  • Experiment name and type (A/B, redirect, personalization)
  • Page URLs and audience targeting rules
  • Primary and secondary goals (clicks, pageviews, custom events)
  • Variant screenshots or HTML notes for each variation

If you are unsure whether GA4 Experiments alone covers your needs, read Google Optimize vs GA4 Experiments first.

Step 2: Create your Stellar account

Sign up for Stellar's free forever plan — up to 25,000 monthly tracked users, no credit card required. This replaces Optimize's former free tier with full access to the visual editor and multiple conversion goals.

Step 3: Remove the Google Optimize snippet

Find and delete the Optimize container script from your site. Common locations:

  • Google Tag Manager — remove the Optimize tag or container
  • Theme header (WordPress, Webflow custom code) — search for optimize.js or GTM- Optimize containers
  • Direct <script> tag in your HTML <head>

Leaving the old snippet can cause console errors and slow page loads. For platform-specific removal tips, see Google Optimize alternative for WordPress or Google Optimize alternative for Webflow.

Step 4: Install Stellar

Add the Stellar snippet to your site — one async script tag in the <head>. The script is 5.4KB, so it is significantly lighter than most Optimize replacements.

If you saw flicker when running Optimize tests, enable Stellar's anti-flicker snippet during setup.

Step 5: Recreate your experiments

Use Stellar's visual editor to rebuild each variation:

  1. Open the page you want to test
  2. Create a new A/B experiment in Stellar
  3. Use the WYSIWYG editor to change headlines, CTAs, images, or layout
  4. For advanced changes, add custom JavaScript or CSS (same workflow many Optimize power users relied on)

Feature mapping from Optimize:

Google OptimizeStellar
Visual editorWYSIWYG editor + custom JS/CSS
Audience targetingURL rules, device, country targeting
Objectives / goalsMultiple conversion goals per experiment
GA4 linkgtag / GTM event forwarding

Step 6: Set up goals and GA4 continuity

Stellar tracks conversions natively, but you can also forward experiment data to GA4:

  • Add a click goal for button or link conversions
  • Add a pageview goal for thank-you or confirmation pages
  • Use custom JavaScript in Global Variant JS to fire gtag events with experiment and variant IDs

This keeps your GA4 reporting consistent with how Optimize sent data to Universal Analytics / GA4.

Step 7: Launch and verify

Before going live:

  • Preview each variant on desktop and mobile
  • Confirm targeting rules match your old Optimize audiences
  • Check that the anti-flicker snippet (if used) hides flash correctly
  • Verify GA4 events in DebugView if you set up forwarding

How long does migration take?

Most teams migrate a single active experiment in under an hour. A full site with 3–5 experiments typically takes half a day, mostly spent recreating variants in the visual editor.

Ready to migrate?

➡️ Start for free with Stellar — no credit card required
➡️ See the full Google Optimize alternative page for feature comparison
➡️ Book a demo if you want help planning your migration

Published: 7/14/2026