---
title: Test dispatch
slug: campaign/docs/test-dispatch
docTags: 
createdAt: 2026-07-02T19:01:45.566Z
---

## Prerequisites

- A website (web app) to implement push notifications.

:::hint{type="info"}
**Note**
Use a different website than your main one for testing. You can create a test website using [Firebase Hosting](https://firebase.google.com/docs/hosting/).

- A user account for [Firebase Cloud Messaging](https://firebase.google.com/docs/cloud-messaging/), a free cross-platform solution for sending push messages.
- Optimizely Campaign test recipient list of type "Push" that customer support sets up for you.
:::

## Set up the website

1. Create a web app [project in Firebase](docId:1zF0lkEKB3PrLDgexMhYe) and provide Optimizely with the required information for the [push assignment](docId:1zF0lkEKB3PrLDgexMhYe).
2. Integrate your website with the Firebase JavaScript SDK. See [Integrating the Firebase SDK](docId:1zF0lkEKB3PrLDgexMhYe).

:::hint{type="info"}
**Note**
If you use Firebase Hosting, see [Firebase Cloud Messaging Quickstart](https://github.com/firebase/quickstart-js/tree/master/messaging) for an integration guide.
:::

\{/*-*/}

3. Save the user registration token generated during the [opt-in process](docId:1zF0lkEKB3PrLDgexMhYe).
4. Add a new recipient with the user registration token to the test recipient list in Optimizely Campaign. See [Opt-in](docId:1zF0lkEKB3PrLDgexMhYe).

## Send a Web Push test message via Smart Campaigns

**Prerequisites:** Push notifications are enabled in your web browser.
**Context:** To test the Web Push message, create a campaign in [Smart Campaigns](docId\:R5uUa03fN0LjqmSAh30Ol).

1. Log in to Optimizely Campaign and select the client for which Web Push has been configured.
2. Open the start menu and select **Campaigns** > **Smart Campaigns**.
3. Create a new campaign using the **Recipient** node and the **Web Push** node. See [Creating and editing a campaign](docId\:R5uUa03fN0LjqmSAh30Ol) in the Optimizely User Guide.
4. Configure the Web Push message. See [Configuring the message](docId\:R5uUa03fN0LjqmSAh30Ol) in the Optimizely User Guide.
5. Click **Push test message** and send the Web Push test messag&#x65;**.** See [Smart Campaigns nodes](docId\:k_hpwC2i6hpPhMRGk2ozV) in the Optimizely User Guide.

The Web Push message is displayed in the web browser when opening.
