◾Mini-games on the landing pages
Last updated
Last updated
Mini-games can work on anonymous users coming to your landing pages before passing the registration process.
You can expose Loyalty Wheel, Scratch & Catch, or GiftBox games for visitors to your landing pages. After playing the game and completing registration, the user will get a prize according to the definition of the prize pool.
Important.
Smartico supports two modes to run mini-games for the anonymous users.
Current page is explaining setup of the game in your main "retention" label with possibility to issue prizes after user completes registration
Another approach is to setup games in the Acquisition label, where the prizes cannot be transferred after registration, but you are able to use Popups and Push notifications for the anonymous users.
You need to create a mini-game template for the Visitor mode and define the prize pool the same way as for the real users.
After creating a template, take a template ID and use it on the landing page as described below
Place the Smartico script on the landing page by adding the following code
Replace _label_key_
with the appropriate label key.
Replace _brand_key_
with the brand key relevant to your landing page.
Set lang
to the 2-symbol ISO 639-1 language code.
Display the game on the landing page, add the following JavaScript to execute and show the game:
Set template_id
to the ID of the mini-game template set up in the Smartico BackOffice
Define the onWin
callback function and retain the value of prize.visitor_win_uuid
, which should be passed to your main site after the user completes the registration
You can choose how to preserve the value and pass it to the main site, such as using cookies, passing it as a URL parameter, or saving it during the registration flow and retrieving it later on the main site.
Setting a position for the mini-game
By default, the mini-game is opened in the center of the screen as a modal overlay.
You can optionally position the mini-game to be in a specific place and to be part of the page instead of being modal.
For this, you need to define an iframe with the needed sizes and positions and instruct through the script to load the game in the position of this iframe.
Setting up Smartico scripts on the main site.
When the user completed registration and is redirected to the main site, you need to transfer visitor_win_uuid to the main site.
1st option is just to pass it as a query parameter to the main site. .e.g
2nd option, you are transferring the value in any way you prefer, but on the main site, you will need to set it in the global variable like this.
Extended possibilities on the landing page
You can get more details about the won prize using the following code:
You can prevent the user from playing the game until he completes some steps in the registration process:
The onBeforePlay callback should return true or false indicating if a visitor is allowed already to play the game or still need to pass some steps in the registration process.
Show the game immediately when a visitor opens the landing page
If you want to show the game right at the point when the landing page is opened, you should place the script in the proper order, as in the example.
To enable mini-games for visitors:
Add "Mini-games (Visitors)" product on the label
Pick an existing test user from the label, this user is needed in order for Visitors to act in the system on behalf of the visitor.
Set GAMIFICATION_VISTOR_MODE_USER_EXT_ID to the "User Ext ID Clean" on the label. "User Ext ID Clean" is the same as Ext ID, but without brand specific prefix. E.g. ext id "123:john" and clean will be "john"
On multi-brand solution, be sure that this User Ext ID is from the same brand as will be used in the initialization of the script on the landing page
Q: Does the Visitor mode require additional configurations?
A: Yes, the Visitor mode requires additional configurations that should be done by Smartico account managers. If you have a multi-brand solution, this setup should be done for all brands associated with your landing pages.
Q: Is there abuse protection for multiple wins in the games engine?
A: Yes, the game's engine has abuse protection for multiple wins. Once a user plays a game on the landing page and receives a prize after registration, they won't receive additional prizes if they play the visitor game again.
Q: How long does a user have to complete registration to receive the prize?
A: To receive the prize, the user should complete registration within 24 hours of playing the game.
Q: Can MatchX game run for the visitor?
A: MatchX is not supported in visitor mode. There is still a possibility to provide it for non-registered users, but it will require the creation of separate labels and more configurations. If you are interested, please contact Smartico Account Managers.
Q: How are items deducted from the prize pool?
A: The items in the prize pool are fixed and not depleting when won by players.
Q: How to prevent visitors to play the game multiple times?
A: You can put a cookie or localStorage value in the browser of the user in the onWin callback. Verify the value on the next visit and don't show the mini-game in case the value is set