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).
Share an insight's public link
- 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](https://res.cloudinary.com/dmukukwp6/image/upload/v1710055416/posthog.com/contents/images/docs/product-analytics/share-or-embed-light-mode.png)
![Sharing an insight via the PostHog app](https://res.cloudinary.com/dmukukwp6/image/upload/v1710055416/posthog.com/contents/images/docs/product-analytics/share-or-embed-dark-mode.png)
- Toggle ON the option to share the insight publicly.
![Share PostHog insight publicly](https://res.cloudinary.com/dmukukwp6/image/upload/v1710055416/posthog.com/contents/images/docs/product-analytics/share-publicly-light-mode.png)
![Share PostHog insight publicly](https://res.cloudinary.com/dmukukwp6/image/upload/v1710055416/posthog.com/contents/images/docs/product-analytics/share-publicly-dark-mode.png)
- 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](https://res.cloudinary.com/dmukukwp6/image/upload/v1710055416/posthog.com/contents/images/docs/product-analytics/embed-insight-light-mode.png)
![Sharing an insight via the PostHog app](https://res.cloudinary.com/dmukukwp6/image/upload/v1710055416/posthog.com/contents/images/docs/product-analytics/embed-insight-dark-mode.png)
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.