Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

▪️Navigating players to Promotion and Landing pages

When you are ready with your Landing or Promotional page and are ready to publish it on your own domain, you need to make a few final changes. After you publish, Get link in the Vibe Studio toolbar shows the page's address.

Prepare index.html (needed for Promotions and Landings)

Your template's index.html file only needs to contain the %SMARTICO_INIT_SCRIPT% placeholder. When you publish the page, Vibe Studio automatically provides the label key and chosen brand key, so you do not need to configure keys in the code.

Your final index.html should look like this:

index.html
<html>
<head>
...
</head>
<body style="margin:0">
  <div id="root"></div>
  <script type="module" src="/index.tsx"></script>
  <!-- DO NOT REMOVE SMARTICO_INIT_SCRIPT from this page -->
  %SMARTICO_INIT_SCRIPT%
</body>
</html>

Important: do not remove %SMARTICO_INIT_SCRIPT% from the page.

For Landing pages, you can set the language by passing the parameter ?_smartico_language=br in the URL. Promotion pages automatically display the logged-in player's preferred language.

Choose the brand when you publish

When publishing a Landing or Promotion page on a label with multiple brands, the publish dialog asks: "Which brand is this page for?".

You must select the relevant brand before publishing. If your label has only one brand, it is used automatically.

Because the page opens on your own domain without URL query parameters, it must know which brand's settings, visitor mode, and gamification profile to use. If visitor mode is not configured for the chosen brand on a Landing page, the dialog displays a warning. Subsequent publishes pre-select the brand that was last used.

Enabling visitor mode (for Landings only)

Be sure you have visitor mode enabled on your label/brand.

Follow the guide in the section 'Enabling Visitor mode in Smartico' described in the Visitor mode.

Passing 'User ID' in the URL (for Promotions only)

You need to pass the user's ID to the promotion page; this way, the page will know which gamification profile to load. The format of the URL should look like the following:

Where XXX is the user identifier in your system aligned with Smartico.

If your user's ID is impossible to guess, as in the screenshot below, this should be enough in most cases.

Otherwise, you need to enable hash protection logic in Smartico BackOffice and pass the user's hash, calculated on the server side.

The user_hash should be calculated in the following way

The label salt key can be retrieved from the label configuration in Smartico BackOffice. The hash validity timestamp is the moment (in milliseconds since 1970, UTC) until which the hash is valid - in the formula above, 24 hours from now.

Example of calculation:

After calculating the hash, you will need to pass it in the URL

You can build a navigation link as part of any communication channel in the Smartico CRM,

The link should be formed using the following tags:

Pay attention to the parameter "24", it defines how long the hash will be valid, in hours (24 is also the default when you leave it out). If the mail with such a link is sent to the end user, they will be able to follow it for only 24 hours.

Example of email template with the link:

Sending players of another brand or label

By default, published pages use the brand chosen during publishing. You can override the brand or label dynamically using URL query parameters:

  • _smartico_brand_public_key: Send players belonging to another brand under the same label to the page. The link value overrides the brand chosen at publish time.

  • _smartico_label_public_key: Point the page to a different label. Important Rule: Whenever you pass a label key, you must always pass the corresponding brand key (_smartico_brand_public_key) of that label as well. Passing a label key alone will pair with the page's default brand and fail.

Precedence Order

The page evaluates keys in the following order of precedence:

  1. Keys set in code directly on the window object (window._smartico_...)

  2. Keys passed in URL query parameters

  3. Keys built into the page during publishing

For language on Landing pages, the URL parameter _smartico_language takes highest priority, followed by code assignments, falling back to English (en).

Upgrading pages built with the earlier version of this guide

If an existing page's index.html has a script block setting _smartico_label_public_key, _smartico_brand_public_key, or _smartico_language, remove that entire <script> block so only %SMARTICO_INIT_SCRIPT% remains, then publish again and choose the brand.

Keys belonging to another label will block publishing until removed.

If you specifically require fixed keys in code, the only valid format is placing them on the window object directly above %SMARTICO_INIT_SCRIPT%:

Hard-coded keys on the window object override the brand chosen at publish time and any keys passed in URL links.

Custom games and widgets

Custom games and embedded widgets do not require URL link parameters or key setup:

  • Custom games: Opened and authenticated automatically inside the operator website by the Smartico gamification interface.

  • Widgets: Embedded on the operator's website using the embed code from Vibe Studio (Get Code) and use your site's existing Smartico initialization.

FAQ

Q: Why does the publish dialog ask for a brand on Landing and Promotion pages?

A: Standalone pages on your domain load without parameters in the URL, so the page must know which brand's settings, visitor mode, and gamification configuration to use.

Q: Can I send players from a different brand to the same landing or promotion page?

A: Yes. Pass &_smartico_brand_public_key=BRAND_KEY in the URL link. The parameter in the link overrides the brand chosen when publishing.

Q: Do Custom Games need URL parameters or link configuration?

A: No. Custom games are launched directly from within the Smartico gamification widget, which passes player credentials automatically.

Q: What if visitor mode is not configured for the chosen brand?

A: Ensure visitor mode is enabled in your brand or label settings in Smartico Back-Office before publishing a landing page for that brand.

Last updated

Was this helpful?