Sharing or embedding insights

Last updated:

|Edit this page

You can share a public link to a specific insight or embed an insight in a web page or application (where the insight will be displayed in an iframe).

  1. Choose Share or embed from the ... (more options) menu located at the top right corner of the page.
Sharing an insight via the PostHog app
  1. Toggle ON the option to share the insight publicly.
Share PostHog insight publicly
  1. Click Copy public link to copy the link to your clipboard. This insight won't require authentication to view.
Sharing an insight via the PostHog app

Embed an insight

In the same panel as above, copy the HTML code to embed the insight on a webpage.

Refreshing

If your insight needs to be refreshed frequently, add ?refresh=true to the end of the insight ID in the iframe code. Example:

<iframe width="100%" height="400" frameborder="0" allowfullscreen src="https://us.posthog.com/embedded/123456?refresh=true"></iframe>

API

You can also embed an insight using the insights API.

Questions?

Was this page useful?

Next article

Subscriptions

Subscriptions enable you to receive regular reports for any Insight or Dashboard in PostHog. Subscriptions Overview From any insight or dashboard, you can create and manage subscriptions via the dropdown menu at the top right. Email Subscriptions 🚧 For self-hosted instances, you need to have configured the SMTP Email settings in instance settings . When configuring an email subscription you can subscribe multiple emails at once, whether they are a member of your PostHog team or not. Once saved…

Read next article