Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow embedding of "Share" dashboard as iframe #2090

Merged
merged 3 commits into from Jun 30, 2023

Conversation

bdcorps
Copy link
Contributor

@bdcorps bdcorps commented Jun 23, 2023

  • This PR adds a EMBED_HOSTED_URL environment that lets a user load up the "Share" dashboard view inside their own applications as an iframe.
  • Fixes Allow embedding with iFrame #1802

How to use:

  1. Add an environment variable called: EMBED_HOSTED_URL with value http://app.localhost:7000. Replace the URL with host/port from wherever your frontend app is running.
  2. Add an iframe like so: <iframe src="https://umami-analytics-pi.vercel.app/share/<shareid>" width="100%" height={2800}></iframe>. Replace shareid with the share ID of the Dashboard you want to view.
  3. The Analytics report should load without any errors in the console.
    image

@vercel
Copy link

vercel bot commented Jun 23, 2023

@bdcorps is attempting to deploy a commit to the umami-software Team on Vercel.

A member of the Team first needs to authorize it.

@ccfiel
Copy link

ccfiel commented Jun 23, 2023

any update on this?

@mikecao mikecao changed the base branch from master to dev June 30, 2023 00:03
Copy link
Collaborator

@mikecao mikecao left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@mikecao mikecao merged commit b8ef385 into umami-software:dev Jun 30, 2023
1 check failed
@eydun
Copy link

eydun commented Jul 14, 2023

Will this solution work for embedding cloud share-pages, or does it require that you run Umami on your own server?

@0x7466
Copy link

0x7466 commented Jan 29, 2024

This is ALLOWED_FRAME_URLS now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Allow embedding with iFrame
6 participants