Docs

Test before going live

Documentation

Test Before Going Live

Keep test banners separate from live banners by matching the environment in your dashboard with the environment on your website.

For your live website

Use Production in the banner’s Settings → Delivery → Environment. The standard installation uses Production by default.

For a test website

On plans that include additional environments, choose Staging or Development in the banner settings. Configure the test site’s integration to request that same environment.

For a JavaScript installation:

Snippetts
const sdk = initSpryUi({
  publicKey: "YOUR_PROJECT_PUBLIC_KEY",
  env: "STAGING",
});

Add your test hostname to the project’s allowed domains. A banner appears only when its environment matches the installation.

Check before enabling a campaign

  • Open a page that matches your targeting rules.
  • Check the banner and its button on desktop and mobile.
  • Confirm the schedule and frequency settings.
  • For the live campaign, use Production and check the published website again.

Localhost testing does not consume your monthly impression allowance.