# Newsletter popup

Display a customized newsletter popup message which can display a discount code or reward the customer with a discount code after subscribing. The newsletter popup can appear after a set period of time, can be displayed only on certain pages, and can also only be displayed if the customer arrives from a certain site (like a targeted ad on social media). Popup messages can also be targeted to display only on desktop or mobile devices.&#x20;

![Highly customizable popup settings](/files/HWvISOqUxnCNkgn2ogtO)

### Reward your customers with a discount code after signup

Provide a custom discount code for those who signup using the newsletter popup:

![](/files/h9CJz3gMCK3IeLJdVVXs)

{% hint style="success" %}
Add multiple newsletter theme blocks with different messages, different coupon codes, and also custom target behaviors
{% endhint %}

### Popup Behaviour

Popups can appear based on time or other behavior. Setting options include:

* Show immediately
* Show 10 seconds after page load
* Show after user scrolls to the page bottom
* Show after the user has been idle for 1 minute

![Each popup block can have different trigger settings](/files/9C2ZxGq66B4PixZDM5aa)


---

# Agent Instructions: Querying This Documentation

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

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://story.groupthought.com/overlay/popups/newsletter-popup.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
