# Acquisition mode

Smartico can interact with anonymous users by sending pop-ups, Push notifications, and displaying mini-games.

This is called '**Acquisition mode**' and is mainly used on the landing pages at the stage when the user hasn't registered yet.

From a setup perspective, '**Acquisition mode**' requires a separate label on the Smartico side; this way, real and anonymous users are fully separated, and the operator can build an independent setup for anonymous users.

## Technical setup

1. Load the Smartico script on the landing page.

On the front-end of the landing pages, set the Smartico script in the following way

<pre class="language-javascript"><code class="lang-javascript">&#x3C;script>
(function(d, r, b, h, s){h=d.getElementsByTagName('head')[0];s = d.createElement('script');s.onload=b;s.src=r;h.appendChild(s);})
(document, 'https://libs.smartico.ai/smartico.js', function() {
<strong>    _smartico.init(
</strong><strong>        '_label_key_for_acqusition_label_', 
</strong><strong>        { 
</strong><strong>            brand_key: '_brand_key_for_acquisition_',
</strong><strong>            generate_visit: true
</strong><strong>        });
</strong>});
&#x3C;/script>
</code></pre>

Be sure to use the acquisition label and brand keys, not those used for registered users!

2. Set the current language of the landing page

```javascript
<script>
    window._smartico_language = 'fr';
</script>
```

3. Support different domains for landing pages.

In case the landing page is hosted on a domain that is different from the main domain of the site

* Setup libraries that are needed for push notifications in the same way as explained in Step 3 of [Front-end integration guide](https://help.smartico.ai/welcome/technical-guides/front-end-integration/..#3.-preparation-for-web-push-notifications)
* When the user is redirected from the landing page to the main site, pass in the URL the ID of the visitor from the landing page using the following code

```javascript
var v = window.localStorage.getItem('_smartico_visitor_id');;
window.location.href = 'index.html#_smartico_visitor_id=' + v;
```

## What is possible to do in the Acquisition mode

1. You can request permissions for push notifications using Smatico campaigns with deep links or just by calling JavaScript: \_smartico.requestPushPermissions()
2. You can send Popups and run Mini-games
3. You can do basic segmentation by:
   1. Country
   2. Browser type
   3. Push permissions status

{% hint style="info" %}
Note: if your main goal is to run mini-games on the landing page and you **don't** plan to use Popups and Push notifications, there is a simplified setup that you can find in [this guide](https://help.smartico.ai/welcome/products/mini-games/mini-games-on-the-landing-pages)
{% endhint %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://help.smartico.ai/welcome/technical-guides/front-end-integration/acquisition-mode.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
