JS snippets

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

SnippetDescription
Notification barDisplay a customised banner on your site to notify users about events such as product releases, sales, and events.
Pineapple modeRain pineapples all over your product or website. Yes, really.

Community questions

Was this page useful?

Questions about this page? or post a community question.