> ## Documentation Index
> Fetch the complete documentation index at: https://docs.projectecho.io/llms.txt
> Use this file to discover all available pages before exploring further.

# How to disable or preview campaigns in the embed

> Opt out of campaigns on a page, or force a campaign preview with a query parameter.

## Disable campaigns on a page

Add this attribute to the embed script tag when you do not want the messenger on that page:

```html theme={null}
data-pe-disable-campaigns="1"
```

Identify and portal links still work; only campaign announcements are skipped.

## Preview a campaign

Append a query parameter to the page URL (app or portal, depending on surface):

```text theme={null}
?pe_campaign_preview=CAMPAIGN_UUID
```

This force-shows that campaign for testing (including appearance), even when it would not otherwise be eligible. Remove the parameter before sharing the URL with customers.

Related: [Show campaigns with the embed](https://docs.projectecho.io/api-mcp-and-embed/show-campaigns-with-the-embed.md) · [Enable, pause, and preview](https://docs.projectecho.io/campaigns/enable-pause-and-preview-a-campaign.md)

Questions? Email [support@projectecho.io](mailto:support@projectecho.io).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.