# Embedding issue in Google Sites

**URL:** <https://discuss.dev.twitch.com/t/embedding-issue-in-google-sites/27600>\
**Category:** API\
**Created:** [August 9, 2020, 3:07am UTC](https://discuss.dev.twitch.com/t/embedding-issue-in-google-sites/27600 "2020-08-09T03:07:55Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Navdeep\_Ahuja](https://d3ovvz0v2ajtpu.cloudfront.net/user_avatar/discuss.dev.twitch.com/navdeep_ahuja/32/9918_2.png) [@Navdeep\_Ahuja](https://discuss.dev.twitch.com/u/Navdeep_Ahuja)\
**Post date:** [August 9, 2020, 3:07am UTC](https://discuss.dev.twitch.com/t/embedding-issue-in-google-sites/27600/1 "2020-08-09T03:07:55Z")

</div>

I am trying to provide a live view in my Google Sites website, however I am constantly getting errors.

An old article here : [https://support.google.com/sites/thread/24626107?hl=en](https://support.google.com/sites/thread/24626107?hl=en)

States that google sites uses sandbox iframe so it’s not possible to embed twitch.

Logically I feel there must be some way around this so I am reaching out here for help.

Regards,  
Navdeep

---

<div class="post-metadata">

**Author:** ![BarryCarlyon](https://d3ovvz0v2ajtpu.cloudfront.net/user_avatar/discuss.dev.twitch.com/barrycarlyon/32/253_2.png) [@BarryCarlyon](https://discuss.dev.twitch.com/u/BarryCarlyon)\
**Post date:** [August 9, 2020, 11:17am UTC](https://discuss.dev.twitch.com/t/embedding-issue-in-google-sites/27600/2 "2020-08-09T11:17:29Z")

</div>

> [@The great big "I'm using WIX/SomeWebsiteMaking Tool and I don't know how to fix my embed" thread](https://discuss.dev.twitch.com/t/the-great-big-im-using-wix-somewebsitemaking-tool-and-i-dont-know-how-to-fix-my-embed-thread/26297/):
>
> If you are using WIX/Google Sites/Some other tool and your embeds are no longer working. The fix is as follows, it seems that wix and other website builders will put your embed in another iframe, so you need to include your website as a parent and that extra iframe as a parent. FOR WIX Generally it seems that for a wix site, your site is somesite.com And your iframe is somesite-com.fileusr.com or www-somesite.com.filesusr.com So your parent would be parent=somesite.com&parent=www.somesi…

Follow the iframe stack and apply the parents as needed

---

<div class="post-metadata">

**Author:** ![Navdeep\_Ahuja](https://d3ovvz0v2ajtpu.cloudfront.net/user_avatar/discuss.dev.twitch.com/navdeep_ahuja/32/9918_2.png) [@Navdeep\_Ahuja](https://discuss.dev.twitch.com/u/Navdeep_Ahuja)\
**Post date:** [August 9, 2020, 2:36pm UTC](https://discuss.dev.twitch.com/t/embedding-issue-in-google-sites/27600/3 "2020-08-09T14:36:08Z")

</div>

Thanks Barry, I have done so however I am still receiving the error. Please see the site: [https://www.gurujisangatboston.org/live](https://www.gurujisangatboston.org/live)

---

<div class="post-metadata">

**Author:** ![Navdeep\_Ahuja](https://d3ovvz0v2ajtpu.cloudfront.net/user_avatar/discuss.dev.twitch.com/navdeep_ahuja/32/9918_2.png) [@Navdeep\_Ahuja](https://discuss.dev.twitch.com/u/Navdeep_Ahuja)\
**Post date:** [August 10, 2020, 3:26pm UTC](https://discuss.dev.twitch.com/t/embedding-issue-in-google-sites/27600/4 "2020-08-10T15:26:44Z")

</div>

@BarryCarlyon any update here?

---

<div class="post-metadata">

**Author:** ![BarryCarlyon](https://d3ovvz0v2ajtpu.cloudfront.net/user_avatar/discuss.dev.twitch.com/barrycarlyon/32/253_2.png) [@BarryCarlyon](https://discuss.dev.twitch.com/u/BarryCarlyon)\
**Post date:** [August 10, 2020, 7:00pm UTC](https://discuss.dev.twitch.com/t/embedding-issue-in-google-sites/27600/5 "2020-08-10T19:00:46Z")

</div>

> [@The great big "I'm using WIX/SomeWebsiteMaking Tool and I don't know how to fix my embed" thread](https://discuss.dev.twitch.com/t/the-great-big-im-using-wix-somewebsitemaking-tool-and-i-dont-know-how-to-fix-my-embed-thread/26297/1):
>
> If you are _still_ stuck after trying this, please post a link to your direct webpage where the broken embed exists and someone can look and provide the fix for you. Please be advised this is voluntary and you may not get an answer quickly.

Try

`https://player.twitch.tv/?channel=sewadaar_sangat&parent=gurujisangatboston.org&parent=www.gurujisangatboston.org&parent=1389242863-atari-embeds.googleusercontent.com&parent=www.gstatic.com` as the embed URL

---

<div class="post-metadata">

**Author:** ![Navdeep\_Ahuja](https://d3ovvz0v2ajtpu.cloudfront.net/user_avatar/discuss.dev.twitch.com/navdeep_ahuja/32/9918_2.png) [@Navdeep\_Ahuja](https://discuss.dev.twitch.com/u/Navdeep_Ahuja)\
**Post date:** [August 10, 2020, 9:49pm UTC](https://discuss.dev.twitch.com/t/embedding-issue-in-google-sites/27600/6 "2020-08-10T21:49:37Z")

</div>

hi @BarryCarlyon,

thank you for the revert, it’s not working. I have an error which states twitch player refused to connect.

 ![image](https://d2opxh93rbxzdn.cloudfront.net/original/2X/4/4b4f6cd4187611211804e4deca2e627d2c91a7f3.png)

---

<div class="post-metadata">

**Author:** ![BarryCarlyon](https://d3ovvz0v2ajtpu.cloudfront.net/user_avatar/discuss.dev.twitch.com/barrycarlyon/32/253_2.png) [@BarryCarlyon](https://discuss.dev.twitch.com/u/BarryCarlyon)\
**Post date:** [August 10, 2020, 10:06pm UTC](https://discuss.dev.twitch.com/t/embedding-issue-in-google-sites/27600/7 "2020-08-10T22:06:55Z")

</div>

I think the problem is google.

Google changes one of iframes every time you save, so there is no fix for google sites becuase the iframes are not static

---

<div class="post-metadata">

**Author:** ![Jeremy\_Baker](https://d3ovvz0v2ajtpu.cloudfront.net/user_avatar/discuss.dev.twitch.com/jeremy_baker/32/10016_2.png) [@Jeremy\_Baker](https://discuss.dev.twitch.com/u/Jeremy_Baker)\
**Post date:** [August 19, 2020, 7:15am UTC](https://discuss.dev.twitch.com/t/embedding-issue-in-google-sites/27600/8 "2020-08-19T07:15:44Z")

</div>

> [@BarryCarlyon](#):
>
> [1389242863-atari-embeds.googleusercontent.com](http://1389242863-atari-embeds.googleusercontent.com)&[parent=www.gstatic.com](http://parent=www.gstatic.com)

Can I ask why this line of code is used?

---

<div class="post-metadata">

**Author:** ![BarryCarlyon](https://d3ovvz0v2ajtpu.cloudfront.net/user_avatar/discuss.dev.twitch.com/barrycarlyon/32/253_2.png) [@BarryCarlyon](https://discuss.dev.twitch.com/u/BarryCarlyon)\
**Post date:** [August 19, 2020, 10:59am UTC](https://discuss.dev.twitch.com/t/embedding-issue-in-google-sites/27600/9 "2020-08-19T10:59:12Z")

</div>

> [@Jeremy\_Baker](#):
>
> Can I ask why this line of code is used?

Why? I used the method outlined on the megathread to follow the iframe embed tree

> [@The great big "I'm using WIX/SomeWebsiteMaking Tool and I don't know how to fix my embed" thread](https://discuss.dev.twitch.com/t/the-great-big-im-using-wix-somewebsitemaking-tool-and-i-dont-know-how-to-fix-my-embed-thread/26297/):
>
> If you are using WIX/Google Sites/Some other tool and your embeds are no longer working. The fix is as follows, it seems that wix and other website builders will put your embed in another iframe, so you need to include your website as a parent and that extra iframe as a parent. FOR WIX Generally it seems that for a wix site, your site is somesite.com And your iframe is somesite-com.fileusr.com or www-somesite.com.filesusr.com So your parent would be parent=somesite.com&parent=www.somesi…

---

<div class="post-metadata">

**Author:** ![Jeremy\_Baker](https://d3ovvz0v2ajtpu.cloudfront.net/user_avatar/discuss.dev.twitch.com/jeremy_baker/32/10016_2.png) [@Jeremy\_Baker](https://discuss.dev.twitch.com/u/Jeremy_Baker)\
**Post date:** [August 19, 2020, 1:05pm UTC](https://discuss.dev.twitch.com/t/embedding-issue-in-google-sites/27600/10 "2020-08-19T13:05:38Z")

</div>

Sorry. I’ve just seen the same [atari-embeds.googleusercontent.com](http://atari-embeds.googleusercontent.com) and [www.gstatic.com](http://www.gstatic.com) posted on another thread about the same issue and was wondering if there was something specific about those two parents.

---

<div class="post-metadata">

**Author:** ![BarryCarlyon](https://d3ovvz0v2ajtpu.cloudfront.net/user_avatar/discuss.dev.twitch.com/barrycarlyon/32/253_2.png) [@BarryCarlyon](https://discuss.dev.twitch.com/u/BarryCarlyon)\
**Post date:** [August 19, 2020, 1:43pm UTC](https://discuss.dev.twitch.com/t/embedding-issue-in-google-sites/27600/11 "2020-08-19T13:43:48Z")

</div>

The problem with google sites, is every time you save your site the parent tree changes so theres no simple fix as the parents change every time you save

Latest reply on the Google Sites issue here

> **[The great big "I'm using WIX/SomeWebsiteMaking Tool and I don't know how to...](https://discuss.dev.twitch.com/t/the-great-big-im-using-wix-somewebsitemaking-tool-and-i-dont-know-how-to-fix-my-embed-thread/26297/319)**
>
> You are shit out of luck with Google Sites, every time you save/update your site, the embed/iframe tree changes. And I’ve not got a suggested fix for that, other than don’t use Google Sites. I need to site down (and sign up for google sites) and...

 ![image](https://d2opxh93rbxzdn.cloudfront.net/original/2X/0/0ea5ca6f4d09d2ff9e793bcf242fdf73458d9c4d.png)

I follow the iFrame stack and determine the iFrames in the stacks, and that gives me the domains to use. But the second blue circle, that changes, _every time_ you publish/save your Google Sites, site

---

<div class="post-metadata">

**Author:** ![Navdeep\_Ahuja](https://d3ovvz0v2ajtpu.cloudfront.net/user_avatar/discuss.dev.twitch.com/navdeep_ahuja/32/9918_2.png) [@Navdeep\_Ahuja](https://discuss.dev.twitch.com/u/Navdeep_Ahuja)\
**Post date:** [August 19, 2020, 3:01pm UTC](https://discuss.dev.twitch.com/t/embedding-issue-in-google-sites/27600/12 "2020-08-19T15:01:02Z")

</div>

Hi @BarryCarlyon please find a solution for Google sites ! There are a lot of business customers who use google sites and want twitch but cannot use.

---

<div class="post-metadata">

**Author:** ![BarryCarlyon](https://d3ovvz0v2ajtpu.cloudfront.net/user_avatar/discuss.dev.twitch.com/barrycarlyon/32/253_2.png) [@BarryCarlyon](https://discuss.dev.twitch.com/u/BarryCarlyon)\
**Post date:** [August 19, 2020, 3:02pm UTC](https://discuss.dev.twitch.com/t/embedding-issue-in-google-sites/27600/13 "2020-08-19T15:02:50Z")

</div>

> [@Navdeep\_Ahuja](#):
>
> please find a solution for Google sites

Please note I’m not Twitch staff.  
I do support on the forums when I have spare time. I don’t get paid for this. So any paid work I have comes first.

And I posted a possible fix on

> [@The great big "I'm using WIX/SomeWebsiteMaking Tool and I don't know how to fix my embed" thread](https://discuss.dev.twitch.com/t/the-great-big-im-using-wix-somewebsitemaking-tool-and-i-dont-know-how-to-fix-my-embed-thread/26297/319):
>
> You are shit out of luck with Google Sites, every time you save/update your site, the embed/iframe tree changes. And I’ve not got a suggested fix for that, other than don’t use Google Sites. I need to site down (and sign up for google sites) and try and find a fix when I get some free time Not until it’s on godaddy and theres a broken page to look at. Edit: This might work for Google Sites: \<div id="twitch-embed"\>\</div\> \<script src="https://embed.twitch.tv/embed/v1.js"\>\</script\> \<script typ…

The real solutions is not to use a website build, as they have all sorts of weird gotchas. For example, weird nested iFrames for no reason.

If you are running a “business” choose hosting that works for your needs, and google sites probably won’t fit your needs

---

<div class="post-metadata">

**Author:** ![Navdeep\_Ahuja](https://d3ovvz0v2ajtpu.cloudfront.net/user_avatar/discuss.dev.twitch.com/navdeep_ahuja/32/9918_2.png) [@Navdeep\_Ahuja](https://discuss.dev.twitch.com/u/Navdeep_Ahuja)\
**Post date:** [August 19, 2020, 3:14pm UTC](https://discuss.dev.twitch.com/t/embedding-issue-in-google-sites/27600/14 "2020-08-19T15:14:33Z")

</div>

@BarryCarlyon laudable dedication! Appreciate your valuable inputs.

---

<div class="post-metadata">

**Author:** ![Navdeep\_Ahuja](https://d3ovvz0v2ajtpu.cloudfront.net/user_avatar/discuss.dev.twitch.com/navdeep_ahuja/32/9918_2.png) [@Navdeep\_Ahuja](https://discuss.dev.twitch.com/u/Navdeep_Ahuja)\
**Post date:** [August 19, 2020, 3:16pm UTC](https://discuss.dev.twitch.com/t/embedding-issue-in-google-sites/27600/15 "2020-08-19T15:16:41Z")

</div>

Its not a business per se in my case,  
I commented generally based on support articles on google sites support as lot of people are facing difficulties. Google support just ends them by saying they use sandbox iframes so it cannot support twitch.

---

<div class="post-metadata">

**Author:** ![Navdeep\_Ahuja](https://d3ovvz0v2ajtpu.cloudfront.net/user_avatar/discuss.dev.twitch.com/navdeep_ahuja/32/9918_2.png) [@Navdeep\_Ahuja](https://discuss.dev.twitch.com/u/Navdeep_Ahuja)\
**Post date:** [August 19, 2020, 3:17pm UTC](https://discuss.dev.twitch.com/t/embedding-issue-in-google-sites/27600/16 "2020-08-19T15:17:56Z")

</div>

Also, for my case it’s more like a prayer service. YouTube cannot be embedded before 4000 view hours , this is where I thought of twitch.

---

<div class="post-metadata">

**Author:** ![Navdeep\_Ahuja](https://d3ovvz0v2ajtpu.cloudfront.net/user_avatar/discuss.dev.twitch.com/navdeep_ahuja/32/9918_2.png) [@Navdeep\_Ahuja](https://discuss.dev.twitch.com/u/Navdeep_Ahuja)\
**Post date:** [August 19, 2020, 4:28pm UTC](https://discuss.dev.twitch.com/t/embedding-issue-in-google-sites/27600/17 "2020-08-19T16:28:36Z")

</div>

@BarryCarlyon surprising observation. When I am editing the page and put the code you provided, I can see the preview:

 ![image](https://d2opxh93rbxzdn.cloudfront.net/original/2X/d/ddca72ab6a3df0d81e2b4d4849df7616de1a6536.jpeg)

---

<div class="post-metadata">

**Author:** ![Navdeep\_Ahuja](https://d3ovvz0v2ajtpu.cloudfront.net/user_avatar/discuss.dev.twitch.com/navdeep_ahuja/32/9918_2.png) [@Navdeep\_Ahuja](https://discuss.dev.twitch.com/u/Navdeep_Ahuja)\
**Post date:** [August 19, 2020, 4:29pm UTC](https://discuss.dev.twitch.com/t/embedding-issue-in-google-sites/27600/18 "2020-08-19T16:29:09Z")

</div>

As I publish the page and changes, I again see the error :

 ![image](https://d2opxh93rbxzdn.cloudfront.net/original/2X/b/beadb5175c9bfcd20321a57f1ceb704180dd51a6.png)

---

<div class="post-metadata">

**Author:** ![BarryCarlyon](https://d3ovvz0v2ajtpu.cloudfront.net/user_avatar/discuss.dev.twitch.com/barrycarlyon/32/253_2.png) [@BarryCarlyon](https://discuss.dev.twitch.com/u/BarryCarlyon)\
**Post date:** [August 19, 2020, 4:29pm UTC](https://discuss.dev.twitch.com/t/embedding-issue-in-google-sites/27600/19 "2020-08-19T16:29:31Z")

</div>

Link to broken page

---

<div class="post-metadata">

**Author:** ![AwakenedDragons](https://d3ovvz0v2ajtpu.cloudfront.net/user_avatar/discuss.dev.twitch.com/awakeneddragons/32/10133_2.png) [@AwakenedDragons](https://discuss.dev.twitch.com/u/AwakenedDragons)\
**Post date:** [September 1, 2020, 7:05pm UTC](https://discuss.dev.twitch.com/t/embedding-issue-in-google-sites/27600/20 "2020-09-01T19:05:27Z")

</div>

I managed to get these working on my side (with my domain and channel). Give it a shot.

**Just stream**

> ```
> <script src= "https://player.twitch.tv/js/embed/v1.js"></script>
> <div id="twitch-embed"></div>
> <script type="text/javascript">
> var options = {
> width: "100%",
> height: "100%",
> channel: "sewadaar_sangat",
> parent: ["gurujisangatboston.org", "www.gurujisangatboston.org","sites.google.com",document.domain,"gstatic.com","www.gstatic.com"]
> };
> var player = new Twitch.Player("twitch-embed", options);
> </script>
> 
> ```

**Stream & Chat**

> ```
> <div id="twitch-embed"></div>
> <script src="https://embed.twitch.tv/embed/v1.js"></script>
> <script type="text/javascript">
> new Twitch.Embed("twitch-embed", {
> width: "100%",
> height: "100%",
> channel: "sewadaar_sangat",
> parent: ["gurujisangatboston.org", "www.gurujisangatboston.org","sites.google.com",document.domain,"gstatic.com","www.gstatic.com"]
> });
> </script>
> 
> ```

> edit: Made a YT video with this information:  
> [https://youtu.be/jDFZncLMHEQ](https://youtu.be/jDFZncLMHEQ)

[Next page](https://discuss.dev.twitch.com/t/embedding-issue-in-google-sites/27600.md?page=2)
