Experiments
Getting Started

Install Nuxt SEO Experiments

Get started with Nuxt SEO Experiments by installing the dependency to your project.
  1. Install nuxt-seo-experiments dependency to your project:
npx nuxi@latest module add seo-experiments
  1. Set a Site URL

To ensure links are set up correctly, the module needs to know your site URL.

The easiest way to set a site URL is to provide it in your nuxt.config:

nuxt.config.ts
export default defineNuxtConfig({
  site: {
    // production URL
    url: 'https://example.com',
  },
})

Otherwise, you can use an .env file or environment variables.

.env
NUXT_PUBLIC_SITE_URL=https://example.com

For more complex applications, learn more at the Nuxt Site Config docs.

That's it!

All features are enabled by default. Learn more by exploring the documentation.