Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Query strings for embedded games?

A topic by Mauno created Apr 25, 2018 Views: 629 Replies: 1
Viewing posts 1 to 2

Is it possible to use query strings in the game page? Something like user.itch.io/gamename?foo=bar and get the embedded html5 game to see it? Or just being able to set them in the options of the file to embed would be nice.

Admin

You should be able to access the URL of the parent itch.io page via your javascript  and extract the URL parameter from there. We don't have an official API to access that data yet.

This topic has been auto-archived and can no longer be posted in because there haven't been any posts in a while.