Embed the Widget

Horizontal or vertical widget showcasing top Playgama games β€” boosts engagement, retention, and monetization. Great for non-gaming sites and apps looking for new revenue streams.

🌐 How to Embed a Game Widget on Your Website

Creating a Widget

  1. Click New Project to start creating your widget

  2. Customize the layout:

    • Choose vertical or horizontal orientation

    • Pick game genres

    • Set the number of games to display

    • Select desired shape: square or rectangle

    • Decide how game titles appear: on hover or always visible

  3. Use the background color picker or mobile preview to see how the widget will look on your site

  4. You can preview how your widget will look in different sizes while setting it up β€” including desktop and mobile views.

    Keep in mind:

    • You'll need to set the widget's width and height yourself on your site (using CSS or inline styles)

    • Max game height is 320 px

    • If the widget is too small or too tall, it might not display correctly

  5. Done? Name your widget and click Save Widget

Embedding the Widget

After saving, you’ll see the Widget Setup Guide. Follow 3 simple steps to add the widget to your website:

  1. Add the script to the <head> section of your site:

    <script async src="https://widgets.playgama.com/index.js"></script>
  2. Add the specific script to your <body> section β€” make sure to copy the <body> script from your widget setup page β€” it’s unique to your widget:

    <script>
      // Widget initialization
    </script>
  3. Place this element where you want the widget to appear:

    <div id="widget-playgama">
        <div style="opacity: 0.2;font-family: sans-serif;font-size: 10px">
          Powered by <a href="https://playgama.com/" target="_blank" rel="noopener">Playgama</a>
        </div>
    </div>

Already created a widget and want to use it on another page? Just open its settings and click the </> icon to copy the embed code.

Last updated