JS snippets
Contents
JS snippets enable you to easily add functionality to your site without extra code. They are injected through the posthog-js library or snippet and can be used to show content or banners on your site.
Enabling snippets
Head to the Web scripts page. Here you can install official PostHog snippets by clicking + New Web script.
Available JS snippets
| Snippet | Description |
|---|---|
| Notification bar | Display a customised banner on your site to notify users about events such as product releases, sales, and events. |
| Pineapple mode | Rain pineapples all over your product or website. Yes, really. |