Add free games to a Google Sites site
Any of the 459 DiceGem games can be played on your Google Sites site for free, with no sign-up and no ads in the games. Google Sites accepts pasted code through its Embed tool and places it in a box on the page. Like any box in Sites, you drag its corners to make it larger.
What you need
A Google account and a site made with the current Google Sites. It is free.
Get the game code
Open the page of the game you want on DiceGem and choose Add this game to your website under the game, then copy the code. For Klondike Solitaire it looks like this:
<div style="max-width:960px">
<iframe src="https://play.dicegem.com/klondike/1.0.0/" title="Klondike Solitaire" width="960" style="display:block;width:100%;height:auto;aspect-ratio:16/10;border:0" allow="fullscreen; autoplay" loading="lazy"></iframe>
<p style="margin:6px 0 0;font-size:14px">Play more free games on <a href="https://dicegem.com/games/klondike/">DiceGem</a></p>
</div> The last line links back to us. It is optional: you can delete it, but please do not change it if you keep it.
Add it to Google Sites
- Open your site in Google Sites and go to the page where the game should appear.
- In the panel on the right, open Insert and click Embed.
- Choose the Embed code tab, paste the game code and click Next.
- Check the preview and click Insert.
- Drag the corners of the box until the whole game and the line under it are visible, then click Publish.
Size and layout
- The game fills the box, so a short box cuts the game off. Make it as wide as the page allows and tall enough for the game plus the line under it.
- A game can also take a whole page: in the Pages panel, hover over the add button and choose Full page embed.
If the game does not show
- Check that the whole code was pasted, from the first
<divto the last</div>. - Look at the published page in a private window. Editors often show a placeholder instead of the game.
- A browser extension that blocks frames can hide the game for you while your visitors still see it.
We checked these steps against Google Sites's own help pages on 20 November 2026. Menu names change from time to time; if yours look different, see Google Sites help: add website content.
Other ways to embed
The embedding page has the rules for embedded games and the WordPress plugin. We also have steps for Wix, Squarespace, Webflow and Blogger.