Launch your Game
Embed your game on your website and configure the necessary user authentication token
To launch your game, you must first embed the game on your website. The game becomes available to your users after the campaign start date you configured in the campaign settings.
Embed your game on your website before the start date so you can test its functionality before the game is launched.
Game URL Structure
The game URL requires a dynamic token parameter to identify each user. This URL is on every page of your campaign and has the following format:
https://game-type.games.xtremepush.com/play/project_id/campaign-name?token=34523453
game-type
: Type of game you have configured, for example, penalty-shootout or scratchcards.campaign-name
: Name of your campaign.token
: The game URL on the platform contains a placeholder token that you must replace when embedding the game on your website.
The unique token identifies each user, allowing Xtremepush to personalize their game experience or track interactions. As the website owner, you're responsible for generating or retrieving the correct token for each user and appending it to the game's URL.
Token Parameter
The game URL requires a token parameter to identify the user. You can add this token in two ways:
- User ID: The simplest approach is to dynamically append the user ID as the token parameter as shown below:
https://game-type.games.xtremepush.com/play/1/campaign-test-1?token=USER_ID
- JWT Authentication: Alternatively, you can use a JSON Wen Token (JWT) for the token parameter. For more information on how to add a JWT token using Xtremepush, see JWT Authentication details.
Updated 1 day ago