> For the complete documentation index, see [llms.txt](https://broadcast.presidiocreative.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://broadcast.presidiocreative.com/broadcast-v4/popups/coupon-codes.md).

# Coupon codes

How to send a coupon code after signing up for a newsletter

When using the newsletter popups in Broadcast, a coupon code can be displayed for your customer after they successfully enter their email address:

Large newsletter:

![Success message with coupon code appears after sign-up](https://content.gitbook.com/content/Rsx9yqijvDkkcmGBKHkk/blobs/4gzVIIf22PWpEAigqyAU/Screen%20Shot%202022-07-26%20at%209.53.42%20AM%20copy.png)

Small newsletter:

![Small newsletter replaces original message with success message](https://content.gitbook.com/content/Rsx9yqijvDkkcmGBKHkk/blobs/u2CCJlRqoDtzfhKEZOvK/Screen%20Shot%202022-07-26%20at%209.58.53%20AM.png)

## How to setup

There are two newsletter styles in Broadcast.

A Large newsletter block which uses a modal window popup and has the ability to show an image or a Small newsletter block which is a minimal design and retains sticky.

We will cover the steps for both below.&#x20;

### Large newsletter

The Large newsletter uses the Language editor to manage the success message. This is especially helpful if your store is supporting multiple languages.&#x20;

Steps:

In the Theme Editor, add the **Large newsletter** block under **Popups**:

![Bottom of the Theme Editor](https://content.gitbook.com/content/Rsx9yqijvDkkcmGBKHkk/blobs/pWrS4JyhVurFsKuLWgJL/Kapture%202022-07-26%20at%2012.32.45.gif)

Configure the block settings to design your newsletter popup:

![](https://content.gitbook.com/content/Rsx9yqijvDkkcmGBKHkk/blobs/6AvizOKyPp26AdDzq0P3/Screen%20Shot%202022-07-26%20at%2012.35.04%20PM.png)

To configure the success message and include the Coupon Code, use the Language editor (Edit languages).&#x20;

You can open the Language Editor by clicking on the 3-dot ellipsis icon at the top of Theme Editor:

![Open the Language Editor to edit the Success message](https://content.gitbook.com/content/Rsx9yqijvDkkcmGBKHkk/blobs/0ItsYHmYBWlGj7YqErLO/Screen%20Shot%202022-07-26%20at%2012.40.43%20PM.png)

In the Language Editor, type-in `newsletter` in the filter/search box and find this section:

![Thank . you with code html](https://content.gitbook.com/content/Rsx9yqijvDkkcmGBKHkk/blobs/6oLOul47J5p7aHKxW38e/Screen%20Shot%202022-07-26%20at%2012.45.01%20PM%20copy.png)

Here you can customize the success message and include your Coupon Code.

if you use the **`<span>Coupon Code</span>`** format, the information inside the span tags will be styled to highlight the code in your message:

![The \<span> tags will style your code with a dashed outline](https://content.gitbook.com/content/Rsx9yqijvDkkcmGBKHkk/blobs/zylHK3w6ee1JOSfkQLmF/Screen%20Shot%202022-07-26%20at%209.53.42%20AM.png)

### Small newsletter

The smaller newsletter uses very little space on the screen and can be positioned in various locations on the screen. The success message is configured right in the block settings.&#x20;

Steps:

In the Theme Editor, add the **Small newsletter** block under **Popups**:

![Bottom of the Theme Editor](https://content.gitbook.com/content/Rsx9yqijvDkkcmGBKHkk/blobs/tdMNLE2aeZNHG672O31Z/Kapture%202022-07-26%20at%2010.48.46.gif)

In the block settings, add the initial text that will be displayed to your customer under **Heading**. Then add the coupon code under **Success message**:

![](https://content.gitbook.com/content/Rsx9yqijvDkkcmGBKHkk/blobs/b90AHgs0tgOjmA3GRtQX/Screen%20Shot%202022-07-26%20at%209.58.05%20AM.png)

Use the additional settings to customize the look and behavior of the popup:

![](https://content.gitbook.com/content/Rsx9yqijvDkkcmGBKHkk/blobs/L4ulfMgLgO1VlysRLR1K/Screen%20Shot%202022-07-26%20at%2011.10.15%20AM.png)

#### Order of action

The Heading text is displayed first:

![](https://content.gitbook.com/content/Rsx9yqijvDkkcmGBKHkk/blobs/4L9f1ezVaNqrpNQHJKpq/Screen%20Shot%202022-07-26%20at%2010.41.42%20AM.png)

Customers can click on the popup and enter their email address:

![](https://content.gitbook.com/content/Rsx9yqijvDkkcmGBKHkk/blobs/xEDAkRizR6B1p71c15p0/Kapture%202022-07-26%20at%2011.02.57.gif)

A Success message is displayed afterwards:

![](https://content.gitbook.com/content/Rsx9yqijvDkkcmGBKHkk/blobs/u2CCJlRqoDtzfhKEZOvK/Screen%20Shot%202022-07-26%20at%209.58.53%20AM.png)

Customers can copy the instant Coupon Code for immediate or future use based on the type of coupon code you've created.&#x20;


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://broadcast.presidiocreative.com/broadcast-v4/popups/coupon-codes.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
