惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Apple Machine Learning Research
Apple Machine Learning Research
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
G
Google Developers Blog
博客园 - 司徒正美
J
Java Code Geeks
aimingoo的专栏
aimingoo的专栏
A
About on SuperTechFans
博客园 - 三生石上(FineUI控件)
WordPress大学
WordPress大学
T
The Blog of Author Tim Ferriss
D
Docker
大猫的无限游戏
大猫的无限游戏
D
DataBreaches.Net
腾讯CDC
V
Visual Studio Blog
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
C
Check Point Blog
M
MIT News - Artificial intelligence
Jina AI
Jina AI
I
InfoQ
雷峰网
雷峰网
The Cloudflare Blog
美团技术团队
Engineering at Meta
Engineering at Meta

Vercel News

Vercel Open Source Program: Winter 2026 cohort How Notion Workers run untrusted code at scale with Vercel Sandbox How we run Vercel's CDN in front of Discourse From idea to secure checkout in minutes with Stripe Building Slack agents can be easy Scaling redirects to infinity on Vercel Advancing Python typing Gamma builds design-first agents with Vercel How Avalara turns pipe dreams into patent-pending with v0 Keeping community human while scaling with agents How OpenEvidence built a healthcare AI that physicians actually trust Security boundaries in agentic architectures Skills Night: 69,000+ ways agents are getting smarter Video Generation with AI Gateway We Ralph Wiggumed WebStreams to make them 10x faster How Stably ships AI testing agents in hours, not weeks How we built AEO tracking for coding agents Anyone can build agents, but it takes a platform to run them Introducing Geist Pixel The Vercel AI Accelerator is back with $6m in credits Making agent-friendly pages with content negotiation The Vercel OSS Bug Bounty program is now available Introducing the new v0 Run untrusted code with Vercel Sandbox, now generally available How Stripe built a game-changing app in a single flight with v0 How Sensay went from zero to product in six weeks AGENTS.md outperforms skills in our agent evals Agent skills explained: An FAQ Testing if "bash is all you need" AWS databases are now live on the Vercel Marketplace and v0
Replacing Google Optimize with the Vercel Edge Network - ...
Anthony Shew · 2023-03-30 · via Vercel News

3 min read

Power your A/B testing and personalization strategy with data and performance.

Since 2012, Google Optimize has been helping web builders experiment with their UIs to find the most effective patterns for their applications. However, Google has announced that Optimize will be sunset on September 30, 2023.

Vercel is ready to help you build a platform to continue your research with higher performance, more control, and better data by leveraging the edge.

With Vercel, you can recreate your Optimize experiments with:

  • Sub-millisecond configuration read times

  • No code using your Vercel dashboard

  • Your existing data ingestion solution

Modernize your experimentation stack

Start your transition today.

Let's Talk

Link to headingGoogle Optimize performance opportunities

In the past, it's been difficult to run experiments in ways that don't harm page performance.

  • Google Optimize's scripts must be loaded on every page where you intend to perform an experiment, adding weight to your page size and increasing load times.

  • Cumulative Layout Shift (CLS) hurts your application's SEO and UX—but is often introduced accidentally when running UI experiments on the client side.

  • Server-side latency increases when your server has to make calls to Google Optimize to figure out which experiments are currently being ran.

Instead, you can introduce Vercel Edge Config and Edge Middleware to your experimentation framework to build a high-performance testing engine.

Link to headingWhat is the edge?

The Vercel Edge Network sits between the internet and your Vercel deployments acting as a Content Delivery network (CDN) with the ability to execute functions as close to your user or data as possible.

This means that the building blocks of your application will always be served from the geographically closest data center in the Edge Network, ensuring that your users experience the best performance possible.

With Vercel, you have several features that you can use together to replicate and enhance Google Optimize's experimenting functionality: Edge Config and Edge Middleware.

Link to headingSub-millisecond experiments with Edge Config

Vercel Edge Config is a small data store for distributing your data to the Edge Network where it can be replicated to all of your globally available regions. Your experiments data becomes available instantly and can be fetched in less than 10ms on average, letting you iterate on your experiments faster.

Once you've created your Edge Config, you can fetch its data in Serverless Functions, Edge Middleware, and Edge Functions. Let's use the Edge Config SDK in an Edge Function to get the best possible performance:

middleware.ts

import { NextResponse } from 'next/server';

import { get } from '@vercel/edge-config';

export const config = { matcher: '/welcome' };

export async function middleware() {

const greeting = await get('greeting');

return NextResponse.json(greeting);

}

Edge Config SDK being used in an Edge Function.

You'll receive the JSON object that you created for your Edge Config to define experiments in your application:

{

// A boolean feature flag

"winterSale": true,

// An A/B test with even weight

"saleColor": {

"red": .5,

"green": .5

},

// A multi-variate, weighted experiment

"buttonColor": {

"red": .2,

"green": .3,

"blue": .5

}

}

An Edge Config payload with a few experiments.

You can then use this payload in your experimentation logic to create a powerful platform for your testing needs.

Link to headingEliminating Cumulative Layout Shift

Embracing the edge also lets us significantly reduce Cumulative Layout Shift (CLS) by making sure that we serve statically rendered content at the speed of dynamic. Using primitives from Next.js and Vercel

With Edge Middleware, you can read your Edge Config to serve the correct variant of your page instantly rather than computing the variant on the client after the page's initial load. Speedway Motors cut their CLS by 50% using this strategy as shown by Vercel Analytics.

Cumulative Layout Shift for Speedway Motors was reduced by 50%.

Cumulative Layout Shift for Speedway Motors was reduced by 50%.

Link to headingTrack results

To analyze how your experiment is doing, you can leverage your current data solution of choice, passing in the context of your experiment as properties of your data.

CheckoutButton.tsx

import { saveData } from'@your-data-provider/sdk';

export const CheckoutButton = () => {

useEffect(() => {

// Track how many times button was rendered

// and which experiments were active

saveData("Checkout button impression", {

isWinterSale: true,

saleColor: "red",

buttonColor: "blue"

})

}, [])

const handleClick = () => {

// Track when a user clicks the button

// and which experiments were active

saveData("Checkout button click", {

isWinterSale: true,

saleColor: "red",

buttonColor: "blue"

})

// Your checkout logic

console.log("Check out!")

}

return (

<button onClick={() => handleClick()}>

Checkout

</button>

)

}

In the future, we're looking forward to adding more features to track your experiments.

Link to headingExperiment faster by default

We want to help you replace your experiments and make them even better.

By taking your experiments to the edge, the tests that you were running with Google Optimize can be incrementally migrated to improve your page performance while still collecting the valuable experimentation data that drives your business.

Talk to a migration expert

Start building a cleaner enterprise-grade stack.

Contact Sales