|
| 1 | +--- |
| 2 | +title: Creating announcements |
| 3 | +sidebar: Docs |
| 4 | +showTitle: true |
| 5 | +--- |
| 6 | + |
| 7 | +import Alpha from './_snippets/alpha.mdx' |
| 8 | + |
| 9 | +<Alpha /> |
| 10 | + |
| 11 | +Announcements are single-step messages for when you don't need a full multi-step tour. They're ideal for feature launches, changelogs, or important notices. |
| 12 | + |
| 13 | +## Announcement types |
| 14 | + |
| 15 | +### Modal announcements |
| 16 | + |
| 17 | +Centered popups that demand attention. Use modals for: |
| 18 | + |
| 19 | +- New feature announcements |
| 20 | +- Changelog updates |
| 21 | +- Welcome messages |
| 22 | +- Important notices |
| 23 | + |
| 24 | +Modals can be positioned in different areas of the screen and support rich content. |
| 25 | + |
| 26 | +### Banner announcements |
| 27 | + |
| 28 | +Top or bottom page alerts for less intrusive messages. Use banners for: |
| 29 | + |
| 30 | +- Promotional messages |
| 31 | +- Maintenance notices |
| 32 | +- Subtle feature hints |
| 33 | +- Persistent CTAs |
| 34 | + |
| 35 | +Banners can be sticky (stay visible while scrolling) or static. |
| 36 | + |
| 37 | +## Create a modal announcement |
| 38 | + |
| 39 | +1. Go to [Product tours](https://us.posthog.com/product-tours) in PostHog |
| 40 | +2. Click **New tour** |
| 41 | +3. Select **Announcement** |
| 42 | +4. Choose **Modal** |
| 43 | + |
| 44 | +### Content |
| 45 | + |
| 46 | +Use the rich text editor to write your announcement. You can: |
| 47 | + |
| 48 | +- Add formatted text |
| 49 | +- Include images and videos |
| 50 | +- Add links |
| 51 | + |
| 52 | +Keep announcements focused on a single message or action. |
| 53 | + |
| 54 | +### Position |
| 55 | + |
| 56 | +Choose where the modal appears: |
| 57 | + |
| 58 | +| Position | Description | |
| 59 | +|----------|-------------| |
| 60 | +| **Center** | Middle of the screen (default) | |
| 61 | +| **Top left** | Upper left corner | |
| 62 | +| **Top center** | Top middle | |
| 63 | +| **Top right** | Upper right corner | |
| 64 | +| **Bottom left** | Lower left corner | |
| 65 | +| **Bottom center** | Bottom middle | |
| 66 | +| **Bottom right** | Lower right corner | |
| 67 | + |
| 68 | +### Width |
| 69 | + |
| 70 | +Control the modal width: |
| 71 | + |
| 72 | +- **Compact** - Narrow, for short messages |
| 73 | +- **Default** - Standard width |
| 74 | +- **Wide** - More room for content |
| 75 | +- **Extra wide** - Maximum width |
| 76 | + |
| 77 | +### Buttons |
| 78 | + |
| 79 | +Add buttons to your modal: |
| 80 | + |
| 81 | +- **Primary button** - Main action (e.g., "Learn more", "Try it now") |
| 82 | +- **Secondary button** - Alternative action (e.g., "Dismiss", "Remind me later") |
| 83 | + |
| 84 | +Button actions: |
| 85 | + |
| 86 | +| Action | Description | |
| 87 | +|--------|-------------| |
| 88 | +| **Dismiss** | Close the announcement | |
| 89 | +| **Link** | Open a URL | |
| 90 | +| **Trigger tour** | Start a product tour | |
| 91 | + |
| 92 | +## Create a banner announcement |
| 93 | + |
| 94 | +1. Go to [Product tours](https://us.posthog.com/product-tours) in PostHog |
| 95 | +2. Click **New tour** |
| 96 | +3. Select **Announcement** |
| 97 | +4. Choose **Banner** |
| 98 | + |
| 99 | +### Content |
| 100 | + |
| 101 | +Banner content is more limited than modals. Keep text concise - banners work best with a single line or short message. |
| 102 | + |
| 103 | +### Position |
| 104 | + |
| 105 | +Banners appear at: |
| 106 | + |
| 107 | +- **Top** - Above page content |
| 108 | +- **Bottom** - Below page content |
| 109 | + |
| 110 | +### Behavior |
| 111 | + |
| 112 | +Choose how the banner behaves: |
| 113 | + |
| 114 | +- **Sticky** - Stays visible as users scroll |
| 115 | +- **Static** - Scrolls with the page |
| 116 | + |
| 117 | +### Action |
| 118 | + |
| 119 | +Banners can have a single action when clicked: |
| 120 | + |
| 121 | +- **None** - Banner is informational only |
| 122 | +- **Link** - Open a URL when clicked |
| 123 | +- **Trigger tour** - Start a product tour when clicked |
| 124 | + |
| 125 | +## When to use modals vs banners |
| 126 | + |
| 127 | +| Use case | Recommended | |
| 128 | +|----------|-------------| |
| 129 | +| Major feature launch | Modal | |
| 130 | +| Changelog update | Modal | |
| 131 | +| Welcome message | Modal | |
| 132 | +| Promotional offer | Banner | |
| 133 | +| Maintenance notice | Banner | |
| 134 | +| Subtle feature hint | Banner | |
| 135 | +| Persistent CTA | Banner (sticky) | |
| 136 | + |
| 137 | +Modals interrupt the user experience, so use them sparingly for important messages. Banners are less intrusive and better for ongoing notices. |
| 138 | + |
| 139 | +## Targeting announcements |
| 140 | + |
| 141 | +Announcements use the same targeting options as product tours: |
| 142 | + |
| 143 | +- URL matching |
| 144 | +- Device types |
| 145 | +- User properties |
| 146 | + |
| 147 | +See [Targeting](/docs/product-tours/targeting) for details. |
| 148 | + |
| 149 | +## Next steps |
| 150 | + |
| 151 | +- [Set up targeting](/docs/product-tours/targeting) to control who sees your announcement |
| 152 | +- [Customize the appearance](/docs/product-tours/customization) to match your brand |
| 153 | +- [Launch and track](/docs/product-tours/managing-tours) your announcement's performance |
0 commit comments