Select to view content in your preferred language

html-embedcode for dashboard

761
6
03-08-2024 12:39 AM
miriam
by
Emerging Contributor

Hello,

How can you place a Dashboard on a website, publicly and without logging in to arcgis? Do you use HTML embed code for that?

If so, where can I find this?

Many thanks!
Miriam

0 Kudos
6 Replies
miriam
by
Emerging Contributor

I search for the code with all the content of the pop-up of the dashboard!! 

0 Kudos
BobBooth1
Esri Contributor
clt_cabq
Frequent Contributor

aren't iframes problematic? I've understood that they aren't liked for a variety of reasons. 

miriam
by
Emerging Contributor

Thank you for your answer! I found the link and used it with my dashboard. But when you open the website , people has to login at arcgis. Is there a solution for that?

And what does the reply from clt_cabq mean? 

Miriam

0 Kudos
clt_cabq
Frequent Contributor

@miriam You would have to make the content you are displaying public for people to view it without credentials, that may not work in your case.  The issue I was trying to point out is that embedding content in an iframe in a web page isn't always a good solution and I've had IT specialists tell me they wouldn't allow it on web pages we managed. They might work for you but it would be worth doing some research to see if there are problems that could arise or if your IT section will support it.. 

0 Kudos
BobBooth1
Esri Contributor

@miriam  - if you want the dashboard to be available on the website without sign in, you need to share it (and the map, and all of the map's layers) with Everyone.

https://doc.arcgis.com/en/dashboards/10.9/get-started/share-a-dashboard.htm

https://enterprise.arcgis.com/en/portal/10.9/use/share-items.htm#GUID-40C9495F-1E40-4A5A-AD55-154FA8...

https://enterprise.arcgis.com/en/portal/10.9/use/embed-maps-groups.htm#ESRI_SECTION1_9B629D885B1D41E...

Another thing you can do, if you still find people are prompted to log in, is to use the URL from the dashboard's Item Description page, in the lower right section.

item_URL.png

and use that in your iframe code.

This URL doesn't have your organization's name and maps in it, which helps avoid the login prompt (which may be a setting of your organization).

https://doc.arcgis.com/en/arcgis-online/share-maps/embed-maps-groups.htm#ESRI_SECTION1_9B629D885B1D4...

https://support.esri.com/en-us/knowledge-base/faq-what-are-the-best-practices-when-allowing-anonymou...

In some cases, website owners disable sharing their content within iFrames. I believe that's what clt_cabq means.

 

0 Kudos