Skip to main content

New Introducing the Holiday Hub — seasonal templates and ideas to plan your holiday campaigns in one place.Introducing the Holiday Hub.Explore the Holiday Hub

How to embed a campaign as a pop-up (2.0)

All plans Last reviewed

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

ToDo this
Show a campaign as a pop-up on your sitePublish it as a pop-up.
Choose when it appearsSet its conditions.
Show it only when several things are true, or when any of them isCombine conditions.
Choose its size and layoutPick 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

  1. In the Campaign Builder, click Publish Campaign, or the Publications icon (a bookmark) at the top right.
  2. Choose Embed Pop-up.
  3. Paste the full address of the page where the pop-up should appear, and click Continue.
  4. Choose Install Global Embed Code. If the code isn't on your site yet, copy it into your site now.
  5. Click Validate to check the code is installed. Then click Continue.
  6. 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.
  7. Add more conditions if you need them. See Combine conditions.
  8. Choose the pop-up's size and layout. See Choose the style.
  9. Optional: change the path for this pop-up in the URL field.
  10. Click Publish.

The pop-up now shows on your site whenever its conditions are met.

Conditions you can use

ConditionShows the pop-up
Time on PageAfter the visitor has been on the page for the time you set.
Page PathOnly on pages whose address matches the path you set.
User Scrolls % of PageOnce the visitor has scrolled the percentage of the page you set.
Exit IntentWhen the visitor looks about to leave the page.
URL ParameterWhen the page address includes the parameter you set, such as one from an email link.
Time Since Last ViewedOnly once the time you set has passed since the visitor last saw it.
View Count per VisitorOnly up to the number of times you set for each visitor.
Last Viewed Compared to DateBased 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 /pricing and 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

  1. Choose a size: 400px, 640px, 840px or Full Width.
  2. Choose a layout.
The pop-up layout picker showing nine thumbnails: Modal (Centered), selected, then Drawer Left and Right, Sheet Top and Bottom, Banner Bottom and Top, and Flyout Bottom Left and Bottom Right.
LayoutWhere it appears
Modal (Centered)In the middle of the screen.
DrawerSlides in from the left or right side.
SheetSlides in from the top or bottom.
BannerA bar across the top or bottom.
FlyoutA small box in the bottom left or bottom right corner.

You can change the style after publishing.

If something goes wrong

What you seeWhat to do
Validate says the code isn't foundCheck 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 showsCheck 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 pagesAdd a Page Path condition to every group. A condition in one group doesn't apply to the others.
The pop-up shows too oftenAdd View Count per Visitor or Time Since Last Viewed.
You've already seen it, and it won't show again while you testA view limit may be stopping it. Test in a private browser window.
The pop-up shows nothing, or is blankSee 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.

Was this helpful?