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.

Prepare index.html (needed for Promotions and Landings)

Open the index.html file in the Vibe Studio and place two variables for your label, brand keys, and optionally language

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>
  <!-- Smartico init: start -->
  <script>
    const _smartico_label_public_key = 'your label key here';
    const _smartico_label_public_key = 'your brand key here';
    const _smartico_language = 'br';
  </script>
  <!-- DO NOT REMOVE SMARTICO_INIT_SCRIPT from this page -->
  %SMARTICO_INIT_SCRIPT%
  <!-- Smartico init: end -->
</body>
</html>

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

You can skip setting the language in the page and pass it as a parameter, like index.html?_smartico_language=br

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 specifies the number of milliseconds for which the hash is valid.

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. 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:

Last updated

Was this helpful?