Pineapple Mode

Last updated:

What does the Pineapple Mode app do?

Activating Pineapple Mode makes it rain pineapples all over your product or website. Yes, really.

OK, but why does Pineapple Mode do that?

Pineapple Mode is an example site app. Site apps are a new, big and currently beta feature which enable you to inject code from PostHog into your website via posthog-js.

We think site apps are a potentially useful feature for things such as displaying forms, notifications or surveys in your product or website. They're also useful for making it rain pineapples!

What are the requirements for this app?

Pineapple Mode requires either PostHog Cloud, or a self-hosted PostHog instance running version 1.41.0 or later.

Not running 1.41.0? Find out how to update your self-hosted PostHog deployment!

You'll also need to manually opt in to the site apps feature, as it's currently in beta.

How do I install Pineapple Mode?

First, you need to manually opt in to the site apps beta. You can do this by configuring your posthog-js initialization to include opt_in_site_apps: true. Please be aware you do this at your own risk and, if you get hit on the head by a pineapple, it's not PostHog's fault.

Once you've opted in, simply visit the 'Apps' page in your PostHog instance, search for 'Pineapple Mode' and press install. You may then need to refresh your page. Here's what you should expect:

Can I make my own site apps?

You certainly can. Check our tutorial about how to build a site app in PostHog to get started.

Is the source code for this app available?

PostHog is open-source and so are all apps on the platform. The source code for Pineapple Mode is available on GitHub.

Who created this app?

You can blame PostHog team member Marius Andra for this one.

Who maintains this app?

This app is maintained by PostHog. If you have issues with the app not functioning as intended, please raise a bug report to let us know!

What if I have feedback on this app?

We love feature requests and feedback! Please create an issue to tell us what you think.

What if my question isn't answered above?

We love answering questions. Ask us anything via our Support page.

You can also join the PostHog Community Slack group to collaborate with others and get advice on developing your own PostHog apps.

Questions?

Was this page useful?

Next article

Overview

Note: You can create apps for both self-hosted and PostHog Cloud, but releasing an app on PostHog Cloud requires a review process. Read more about the review process in the tutorial PostHog makes it possible to build your own apps and integrate with other platforms. So, if App Store is missing something you need then you may still be able to create it yourself. Apps can add more information to an event, modify existing properties, import or export data, or trigger a range of other activities…

Read next article