# Embed widget in custom page

**URL:** <https://forums.losant.com/t/embed-widget-in-custom-page/1768>\
**Category:** Help\
**Tags:** experience\
**Created:** [April 29, 2019, 3:36pm UTC](https://forums.losant.com/t/embed-widget-in-custom-page/1768 "2019-04-29T15:36:42Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![nahuel](https://avatars.discourse-cdn.com/v4/letter/n/8dc957/32.png) [@nahuel](https://forums.losant.com/u/nahuel)\
**Post date:** [April 29, 2019, 3:36pm UTC](https://forums.losant.com/t/embed-widget-in-custom-page/1768/1 "2019-04-29T15:36:42Z")

</div>

Hi,

I’m testing the platform and currently I’d like to embed a widget into an experience view page of type custom.

I tried pasting widget embedded code into the custom page, but when I do so I automatically get logged out from Losant page.  
It also happens if I paste the embedded code into JsFiddle.

---

<div class="post-metadata">

**Author:** ![JuliaKempf](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.losant.com/juliakempf/32/2446_2.png) [@JuliaKempf](https://forums.losant.com/u/JuliaKempf)\
**Post date:** [April 29, 2019, 4:23pm UTC](https://forums.losant.com/t/embed-widget-in-custom-page/1768/2 "2019-04-29T16:23:12Z")

</div>

Hi @nahuel,

Could you provide a link to the dashboard you are pulling the block from? I will send you a private message for that information. I was able to replicate a “refreshing” that occurs with the embedded block, but can do further testing with your dashboardID.

Thanks!  
Julia

---

<div class="post-metadata">

**Author:** ![JuliaKempf](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.losant.com/juliakempf/32/2446_2.png) [@JuliaKempf](https://forums.losant.com/u/JuliaKempf)\
**Post date:** [April 29, 2019, 5:44pm UTC](https://forums.losant.com/t/embed-widget-in-custom-page/1768/3 "2019-04-29T17:44:00Z")

</div>

Hi @nahuel,

Thank you for providing those details! I took a closer look behind the scenes and it looks as though you are being logged out as your dashboard is set to private. You will be able to embed a single block only if your dashboard is set to `public`. You can browse our documentation on embedding single blocks and full dashboards [here](https://docs.losant.com/dashboards/overview/#embedding-in-other-sites).

Let me know how else I can help!  
Julia

---

<div class="post-metadata">

**Author:** ![nahuel](https://avatars.discourse-cdn.com/v4/letter/n/8dc957/32.png) [@nahuel](https://forums.losant.com/u/nahuel)\
**Post date:** [April 30, 2019, 4:38pm UTC](https://forums.losant.com/t/embed-widget-in-custom-page/1768/4 "2019-04-30T16:38:41Z")

</div>

Hi Julia,

I’ve checked and the Dashboard is set to public but I still keep getting logged out when I visit the custom page that holds that embedded widget.

---

<div class="post-metadata">

**Author:** ![JuliaKempf](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.losant.com/juliakempf/32/2446_2.png) [@JuliaKempf](https://forums.losant.com/u/JuliaKempf)\
**Post date:** [April 30, 2019, 7:07pm UTC](https://forums.losant.com/t/embed-widget-in-custom-page/1768/5 "2019-04-30T19:07:00Z")

</div>

Hi @nahuel,

Sorry this is occurring, I was able to replicate the log out with a public dashboard as well. I will inform our engineers, and let you know shortly if we find a solution.

Thank you so much for your patience! 😄  
Julia

---

<div class="post-metadata">

**Author:** ![nahuel](https://avatars.discourse-cdn.com/v4/letter/n/8dc957/32.png) [@nahuel](https://forums.losant.com/u/nahuel)\
**Post date:** [May 9, 2019, 6:12pm UTC](https://forums.losant.com/t/embed-widget-in-custom-page/1768/6 "2019-05-09T18:12:35Z")

</div>

Hi @JuliaKempf,

Any news about this issue?

---

<div class="post-metadata">

**Author:** ![JuliaKempf](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.losant.com/juliakempf/32/2446_2.png) [@JuliaKempf](https://forums.losant.com/u/JuliaKempf)\
**Post date:** [May 9, 2019, 6:46pm UTC](https://forums.losant.com/t/embed-widget-in-custom-page/1768/7 "2019-05-09T18:46:12Z")

</div>

Hi Nahuel,

A solution has not yet gone live for this problem. I have found the log out happens in Chrome, while Safari causes the Losant page to only refresh and not log out. Currently, I am able to work around it by having the two pages in different browser windows, but I will update you once the permanent solution is in place.

Thanks!  
Julia

---

<div class="post-metadata">

**Author:** ![nahuel](https://avatars.discourse-cdn.com/v4/letter/n/8dc957/32.png) [@nahuel](https://forums.losant.com/u/nahuel)\
**Post date:** [May 10, 2019, 3:50pm UTC](https://forums.losant.com/t/embed-widget-in-custom-page/1768/8 "2019-05-10T15:50:25Z")

</div>

Thanks. I’ll give your workaround a try.

I have another question 😄  
Since both, the dashboard and the custom page, are hosted on Losant is there a way of embedding the widget into the custom page without having to make dashboard public?

---

<div class="post-metadata">

**Author:** ![JuliaKempf](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.losant.com/juliakempf/32/2446_2.png) [@JuliaKempf](https://forums.losant.com/u/JuliaKempf)\
**Post date:** [May 10, 2019, 8:39pm UTC](https://forums.losant.com/t/embed-widget-in-custom-page/1768/9 "2019-05-10T20:39:30Z")

</div>

Hi @nahuel,

Currently there is not a way to embed one block unless the dashboard is public, but I will make a feature request for this functionality. If you are trying to embed a custom block that does not use Losant state data, you could also directly put it on the page instead of in a block (for example, the stopwatch JS library you referenced previously). Otherwise, you could also display the entire private dashboard with a [Dashboard Experience Page](https://docs.losant.com/experiences/views/#dashboard-pages).

Thanks!  
Julia
