How to embed a campaign as a pop-up (2.0)
A pop-up embed shows your campaign over a page on your website when the conditions you choose are met, such as after 10 seconds, halfway down the page or when a visitor is about to leave. Once the global embed code is on your site, a pop-up needs no more code. Choose its conditions, size and layout when you publish.
What you can do
| To | Do this |
|---|---|
| Show a campaign as a pop-up on your site | Publish it as a pop-up. |
| Choose when it appears | Set its conditions. |
| Show it only when several things are true, or when any of them is | Combine conditions. |
| Choose its size and layout | Pick a style. |
Before you start
- Install the global embed code on your site. It goes on your site once, and runs every pop-up. See How to install our global embed code (2.0).
- Have the full address of the page where the pop-up should appear, such as
yoursite.com/giveaway.
Publish a pop-up
- In the Campaign Builder, click Publish Campaign, or the Publications icon (a bookmark) at the top right.
- Choose Embed Pop-up.
- Paste the full address of the page where the pop-up should appear, and click Continue.
- Choose Install Global Embed Code. If the code isn't on your site yet, copy it into your site now.
- Click Validate to check the code is installed. Then click Continue.
- Under Show Pop-Up When, click the blue button and choose your first condition. Click the blue text next to it to change its setting. See Conditions you can use.
- Add more conditions if you need them. See Combine conditions.
- Choose the pop-up's size and layout. See Choose the style.
- Optional: change the path for this pop-up in the URL field.
- Click Publish.
The pop-up now shows on your site whenever its conditions are met.
Conditions you can use
| Condition | Shows the pop-up |
|---|---|
| Time on Page | After the visitor has been on the page for the time you set. |
| Page Path | Only on pages whose address matches the path you set. |
| User Scrolls % of Page | Once the visitor has scrolled the percentage of the page you set. |
| Exit Intent | When the visitor looks about to leave the page. |
| URL Parameter | When the page address includes the parameter you set, such as one from an email link. |
| Time Since Last Viewed | Only once the time you set has passed since the visitor last saw it. |
| View Count per Visitor | Only up to the number of times you set for each visitor. |
| Last Viewed Compared to Date | Based on when the visitor last saw it, compared with a date you set. |
Combine conditions
Conditions sit in groups:
- Within a group, all conditions must be true. For example, a group with Page Path set to
/pricingand User Scrolls % of Page set to 50% shows the pop-up only on the pricing page, once the visitor is halfway down. - Across groups, any one group is enough. For example, one group with Time on Page set to 10 seconds and another with Exit Intent shows the pop-up after 10 seconds, or when the visitor is about to leave, whichever comes first.
Choose the style
- Choose a size: 400px, 640px, 840px or Full Width.
- Choose a layout.
| Layout | Where it appears |
|---|---|
| Modal (Centered) | In the middle of the screen. |
| Drawer | Slides in from the left or right side. |
| Sheet | Slides in from the top or bottom. |
| Banner | A bar across the top or bottom. |
| Flyout | A small box in the bottom left or bottom right corner. |
You can change the style after publishing.
If something goes wrong
| What you see | What to do |
|---|---|
| Validate says the code isn't found | Check the global embed code is on your site, that you published your site, and that any caches are cleared. See How to install our global embed code (2.0). |
| The pop-up never shows | Check its conditions. In one group, every condition must be true at once. Try a single Time on Page condition to test. |
| The pop-up shows on the wrong pages | Add a Page Path condition to every group. A condition in one group doesn't apply to the others. |
| The pop-up shows too often | Add View Count per Visitor or Time Since Last Viewed. |
| You've already seen it, and it won't show again while you test | A view limit may be stopping it. Test in a private browser window. |
| The pop-up shows nothing, or is blank | See Troubleshooting embed issues. |
FAQs
Do I need to add code to my site for each pop-up?
No. Once the global embed code is on your site, every pop-up works without more code. You only choose its conditions and style in ShortStack.
Can I change the pop-up's size or layout after publishing?
Yes. You can change the style after the pop-up is published.
How do I show a pop-up after 10 seconds, or when someone is about to leave?
Use two condition groups, one with Time on Page set to 10 seconds and one with Exit Intent. The pop-up shows when either group's conditions are met. See Combine conditions.
How do I stop a pop-up showing to the same visitor over and over?
Add a View Count per Visitor or Time Since Last Viewed condition, so it shows only a set number of times, or only after a set time has passed.
Related resources
Was this helpful?
Thanks — that helps us decide what to fix next.
Sorry this missed. Tell us what you needed and we'll get you an answer — and fix the page.