How to embed the Steam widget and your trailer
Steam serves a store widget for every game at store.steampowered.com/widget/<your app ID>/. Create it from your store page's Embed button, pick the purchase option, edit the description and copy the HTML: one iframe. For an unreleased game it shows an Add to Wishlist button; for a released game, the price and a Buy on Steam button that puts the game in the visitor's cart. It updates itself when you change the price, a discount, platforms or the branding image, and its links carry utm_source=steamwidget by default, which you can override with your own UTM parameters to see its wishlists in Steam's UTM Analytics. For the trailer, use YouTube's embed code or your own muted, looping MP4. On phones, add a plain Wishlist on Steam button too, since the widget is wide.
AppImage, x86_64. Ubuntu 22.04, Debian 12, Fedora 39 or newer.
Intel or AMD Chromebook, with Linux turned on.
One iframe and the store comes to your page
Steam's widget is the quickest way to put a buy or wishlist path on your site, a blog post or a press page. It shows the game's capsule, title, your description, and either an Add to Wishlist button or the price and a Buy on Steam button, and it updates itself, so there is nothing to maintain when the price or the platforms change.
The obvious approach is a plain link that says "available on Steam". It works, but it sends visitors to a page where they still have to find the button. The widget puts the action on your page; for a released game, Valve says the Buy button takes the visitor to Steam with the game already in their cart.
Valve's Steamworks documentation: Store Widget.
Creating the widget
- Open your public store page on Steam and click Embed on the right-hand side.
- Pick the purchase option if the game has several, such as a standard and a deluxe edition.
- Edit the description: Steam pre-fills the start of your store description; write one or two lines that suit your site.
- Click Create Widget, check the preview, and copy the HTML.
- Paste it into your page, and add your own UTM parameters to the iframe address if you want to tell this placement apart from others.
Valve's Steamworks documentation: Store Widget.
The code
Use the code Steam generates; it looks like this, with your app ID in place of APPID. Keep the width and height Steam gives you:
Valve's Steamworks documentation: UTM Analytics, Store Widget.
<iframe src="https://store.steampowered.com/widget/APPID/?utm_source=website&utm_campaign=homepage" frameborder="0" width="646" height="190" loading="lazy" title="Steam store widget"></iframe>What it shows, before and after launch
From Valve's Store Widget documentation:
| Before release (Coming Soon) | After release | |
|---|---|---|
| Button | Add to Wishlist | Buy on Steam, with the price |
| Click goes to | Your Steam page to wishlist | Steam, with the game in the cart |
| Updates automatically | Description stays as you wrote it | Price, discounts, platforms, branding image |
| Tracking | utm_source=steamwidget by default, or your own | Same |
Valve's Steamworks documentation: Store Widget.
Tracking what the widget brings
By default the widget's links include utm_source=steamwidget, so wishlists and purchases from every widget you have embedded show up together in Steam's UTM Analytics; filter by that source to see them. If you embed the widget in several places, your site, a blog post, a press page, give each its own parameters on the iframe address, such as utm_source=website&utm_campaign=homepage. A utm_source you add overrides the default. Steam's UTM Analytics also supports widgets explicitly, so the visits and conversions land in the same report as your other tagged links; see Steam UTM tracking.
Valve's Steamworks documentation: Store Widget, UTM Analytics.
On phones
The widget has a fixed width, wider than most phone screens, and visitors from social links are mostly on phones. Two common fixes: let the widget's container scroll or scale on small screens, or show a large Wishlist on Steam button linking to https://store.steampowered.com/app/APPID/ on phones and the widget on wider screens. A plain button also loads instantly, where the iframe makes a request to Steam.
The trailer
- YouTube: use Share, then Embed, to get the iframe code. Add the privacy-enhanced youtube-nocookie.com address if you do not want views of the embed to personalize the visitor's YouTube experience or ads, and lazy loading so it does not slow the first screen.
- Your own file: an MP4 in a video tag. For a silent background loop in the hero, use muted, autoplay, loop and playsinline, keep it short, and keep the file small, a few megabytes at most.
- A poster image: give the video a poster frame so something shows before it loads.
- Captions: if the trailer has narration or text, add captions; many visitors watch without sound.
Sources: YouTube Help: Embed videos and playlists.
<video src="/trailer-loop.mp4" poster="/trailer-poster.jpg" muted autoplay loop playsinline></video>Common problems
- The widget is blank: check the app ID, and that the store page is public; a page still in review has no widget.
- It shows the wrong edition: recreate it and pick the right purchase option in step 2.
- The description is cut off: shorten it; the widget has a fixed size.
- It breaks the layout on phones: wrap it in a container that scrolls or scales, or swap it for a button on small screens.
- Your site builder strips iframes: use its embed or custom HTML block, or a plain button linking to the store page.
- No wishlists show in UTM Analytics: allow up to four days for conversions to settle, and remember only signed-in Steam users who allow tracking are counted.
Valve's Steamworks documentation: UTM Analytics.
Widget or button?
Both have a place. The widget shows the capsule, a description and the live price, and for a released game puts the game straight into the visitor's cart, which makes it a good fit lower on a page, in a blog post or on a press page, where a visitor wants context before acting. A plain button is lighter, fits any screen and can match your site's design, which makes it the better choice for the first screen, especially on phones. Many game sites use a large button at the top and the widget further down.
Where to put them
A layout that works on a game's homepage: the name, hook and a Wishlist on Steam button at the top, a silent gameplay loop behind or beside them, the full trailer just below, then the Steam widget after the screenshots as a second chance to act. On a press page, the trailer link and a downloadable file matter more than the widget. See what to put on a game website.
Where Flockbay fits
When Flockbay's AI builds your game's website, it can add the Steam button or widget and your trailer from Video studio. Building and the .zip are free; publishing on your game's flockbay.app address is a paid feature.
Questions
- How do I get the Steam widget for my game?
- On your public Steam store page, click Embed on the right-hand side, pick the purchase option, edit the description, click Create Widget and copy the HTML into your site.
- Does the Steam widget work for unreleased games?
- Yes. For a Coming Soon game it shows an Add to Wishlist button instead of the price and Buy on Steam button.
- Do I need to update the Steam widget when my price changes?
- No. Valve says the widget keeps itself up to date when you change the price or a discount, add platforms or update the branding image. Only the description you wrote stays as it was.
- Can I track wishlists from the Steam widget?
- Yes. Its links carry utm_source=steamwidget by default, which shows in Steam's UTM Analytics; add your own UTM parameters to the iframe address to tell different placements apart.
Flockbay builds your game for free, and a website with its Steam button and trailer.
Download Flockbay freeAppImage, x86_64. Ubuntu 22.04, Debian 12, Fedora 39 or newer.
Intel or AMD Chromebook, with Linux turned on.
