Skip to content

Embed on Website

Embed your DailyPlay games directly on your website for a seamless brand experience.

The simplest way to embed your game:

<iframe
src="https://dailyplay.app/embed/game/[game-id]"
width="400"
height="700"
frameborder="0"
allow="camera; microphone"
></iframe>

For responsive layouts that adapt to screen size:

<div style="position: relative; width: 100%; max-width: 400px; margin: 0 auto;">
<div style="padding-top: 175%; position: relative;">
<iframe
src="https://dailyplay.app/embed/game/[game-id]"
style="position: absolute; top: 0; left: 0; width: 100%; height: 100%;"
frameborder="0"
allow="camera; microphone"
></iframe>
</div>
</div>

  1. Open your published game
  2. Click Share/Embed
  3. Select the Embed tab
  4. Copy the embed code
  1. Go to Manage Games
  2. Find your game
  3. Click Share/Embed
  4. Copy the embed code

https://dailyplay.app/embed/game/[game-id]

Add query parameters for customization:

https://dailyplay.app/embed/game/[game-id]?hideHeader=true&theme=light

Available parameters:

ParameterValuesDescription
hideHeadertrue/falseHide the game header
hideFootertrue/falseHide the footer
autoplaytrue/falseStart game automatically

For mobile-optimized games:

DimensionValue
Width400px
Height700px
Ratio~1:1.75

For wider layouts:

DimensionValue
Width500px
Height800px
<div style="max-width: 500px; margin: 0 auto;">
<div style="position: relative; padding-top: 160%;">
<iframe
src="https://dailyplay.app/embed/game/[game-id]"
style="position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: none; border-radius: 12px;"
allow="camera; microphone"
></iframe>
</div>
</div>

Using HTML Block:

  1. Add a new block
  2. Select Custom HTML
  3. Paste the embed code
  4. Preview and publish

Using Shortcode (if available):

Some themes support shortcodes for iframes.

  1. Go to your page/product in Shopify admin
  2. Click Show HTML in the editor
  3. Paste the embed code
  4. Save
  1. Add a Code Block
  2. Paste the embed code
  3. Apply changes
  1. Add an HTML iframe element
  2. Paste the iframe code
  3. Adjust size as needed
  1. Add an Embed element
  2. Paste the embed code
  3. Style the container as needed

Wrap the iframe in a styled container:

<div
style="
max-width: 400px;
margin: 2rem auto;
border-radius: 16px;
overflow: hidden;
box-shadow: 0 4px 20px rgba(0,0,0,0.1);
"
>
<iframe
src="https://dailyplay.app/embed/game/[game-id]"
width="100%"
height="700"
frameborder="0"
allow="camera; microphone"
></iframe>
</div>
<div style="text-align: center; padding: 2rem 0;">
<iframe
src="https://dailyplay.app/embed/game/[game-id]"
width="400"
height="700"
frameborder="0"
style="border-radius: 12px;"
allow="camera; microphone"
></iframe>
</div>

Include these in the allow attribute for full functionality:

allow="camera; microphone"
PermissionNeeded For
cameraExpression-based games, video recording
microphoneVoice-controlled games

If your game doesn’t use camera/mic, you can omit the allow attribute:

<iframe
src="https://dailyplay.app/embed/game/[game-id]"
width="400"
height="700"
frameborder="0"
></iframe>

Your website must use HTTPS to embed DailyPlay games. The embed won’t work on HTTP-only sites.

If your site has a CSP, add DailyPlay to your allowed sources:

frame-src https://dailyplay.app;

DailyPlay games work within iframes across different origins. No special configuration needed.


  1. Local Testing — Use a local server (http://localhost)
  2. Check Sizing — Verify the game displays correctly
  3. Mobile Test — View on mobile devices
  4. Feature Test — Confirm game plays properly

  • Verify the game ID is correct
  • Check the game is published
  • Ensure HTTPS is used
  • Check width/height attributes
  • Use responsive wrapper
  • Test on target devices
  • Add allow="camera" attribute
  • Ensure HTTPS (required for camera)
  • User must grant permission
  • Add frame-src https://dailyplay.app to your CSP
  • Check browser console for specific errors