> For the complete documentation index, see [llms.txt](https://help.smartico.ai/welcome/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.smartico.ai/welcome/products/tools-and-guides/user-markers-tags.md).

# User markers (tags)

This document provides an overview of the three distinct types of tags — **Core: user markers** (core\_tags), **Core: external markers** (core\_external\_markers), and **Core: JS markers** (core\_public\_tags) — used within our CRM automation software.

These markers are pivotal in segmenting users and tailoring campaigns, automation rules, and gamification entities.

{% hint style="info" %}
Looking for dynamic content snippet tags in communication templates? See [Label tags](https://help.smartico.ai/welcome/products/tools-and-guides/label-tags.md) for template and content text replacement options.
{% endhint %}

<div data-with-frame="true"><figure><img src="https://77049817-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfS5hl0PiysHtKAKMsQTe%2Fuploads%2Fgit-blob-c2620e5ef0a51e66e27d3e51b887331289901e3f%2Fimage.png?alt=media" alt=""><figcaption><p>Usage of markers in the segmentation</p></figcaption></figure></div>

## **Core: user markers (**&#x63;ore\_tag&#x73;**)**

These markers are internally managed within the Smartico system. They can be updated automatically through Smartico mechanics like Campaigns, Automation rules, and Gamification rewards, or manually directly from the player profile in the CRM tab.<br>

<div data-with-frame="true"><figure><img src="https://77049817-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfS5hl0PiysHtKAKMsQTe%2Fuploads%2Fgit-blob-4fb62f28f3e2d3062f28e2565141f92c3470b356%2F282fd79dd8-crop-2-e9e0be23-24b7ca.png?alt=media" alt=""><figcaption><p>Setting/removing markers from the campaign flow</p></figcaption></figure></div>

<div data-with-frame="true"><figure><img src="https://77049817-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfS5hl0PiysHtKAKMsQTe%2Fuploads%2Fgit-blob-ce923b02b5c1f9971ff18dec5ed1af9de467fda7%2Fadea965f72-crop-3-e8ebe4a7-d4f4b5.png?alt=media" alt=""><figcaption><p>Markers visibility on the CRM profile screen</p></figcaption></figure></div>

## **Core: external markers (**&#x63;ore\_external\_marker&#x73;**)**

External Markers are sourced externally via APIs (or through database replication, Kafka, or RabbitMQ feeds). They are not updated by Smartico internal mechanics, meaning the integrated platform remains the single source of truth.

In case you want to update external markers from the API, you can use this type of payload when calling Smartico REST API (you can find full documentation of API and security keys in **Tools → Rest API** in the Smartico Back Office)

```json
[
    {
        "eid": "99dcc07c-17f6-418e-b574-c91ffe77d18e",
        "event_date": 1717508861954,
        "ext_brand_id": "spacex",
        "user_ext_id": "test61323352",
        "event_type": "update_profile",
        "payload": {
            "core_external_markers": [
                "Test with API",
                "Marker X"
            ]
        }
    }
]
```

<div data-with-frame="true"><figure><img src="https://77049817-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfS5hl0PiysHtKAKMsQTe%2Fuploads%2Fgit-blob-9408198a47a62535ee0d53516ef52212036b4570%2Fbe0ccb3f3f-crop-4m-38f82a80-03809a.png?alt=media" alt=""><figcaption><p>See updates in the markers, and how they are delivered into the Smartico system. The same approach is working for JS Markers and User markers</p></figcaption></figure></div>

### Incremental Updates (Add, Remove, Clear)

When sending updates via the REST API or integrations, passing a plain array replaces the user's entire marker list. To modify markers incrementally without overwriting existing ones, use prefix operators in the property name:

* **Add markers (`+` prefix):** `"+core_external_markers": ["VIP"]` appends new markers to the existing list.
* **Remove markers (`-` prefix):** `"-core_external_markers": ["TEST"]` removes specific markers while keeping others intact.
* **Clear all markers (`!` prefix):** `"!core_external_markers": null` removes all markers from the user.
* **Full replacement (no prefix):** `"core_external_markers": ["A", "B"]` overwrites all existing markers with the new list.

These prefix operators apply equally to `core_external_markers`, `core_external_markers_2`, `core_external_segment`, `core_tags`, and `core_public_tags`.

{% hint style="info" %}
In addition to **core\_external\_markers**, Smartico provides two additional external marker properties: **core\_external\_markers\_2** (**Core: external markers 2**) and **core\_external\_segment** (**Core: external segments**).

Both hold arrays of string values and serve the same purpose as the primary property. They are typically used when an operator wants to separate different categories of markers rather than grouping them into a single list.
{% endhint %}

## **Core: JS markers (**&#x63;ore\_public\_tag&#x73;**)**

JS Markers can be manipulated from the front-end using JavaScript and within the Smartico system through campaigns, automation rules, and mission and badge rewards. You can also change them by hand on the player profile in the CRM tab (the **JS markers** row).

It is important that these tags are exposed to the front-end, so they can be used to make changes in the front-end UI based on the presence/absence of the specific tags. The APIs to read/update tags are explained in "[Extended Integration](https://help.smartico.ai/welcome/technical-guides/front-end-integration/extended-integration.md)"

```javascript
// to get JS markers on the front-end
// if the marker is set from the Campaign/Automation rule
// the callback 'props_change' will be triggered in the realtime
_smartico.on('props_change', function(props) {
    if (props.core_public_tags !== undefined) {
        // note that the passed object is an array 
        // with upper-cased markers of users
        console.log('List of user tags', props.core_public_tags.join(','));
    }
});

// to update tags from the front-end
_smartico.event('core_public_tags_update', { core_public_tags: ['A', 'B'] } );

```

```javascript
// Alternatively, use the built-in SDK helper method for granular operations:
_smartico.updatePublicTags('add', ['VIP']);         // Appends tags
_smartico.updatePublicTags('remove', ['TEST']);     // Removes specific tags
_smartico.updatePublicTags('replace', ['A', 'B']);  // Overwrites all public tags
_smartico.updatePublicTags('clear');                // Clears all public tags
```

Public tags are automatically normalized to uppercase strings: the server converts every value to upper case, so the SDK always returns them in upper case.

## Summary

<table><thead><tr><th width="247">Marker type</th><th>Source of data</th><th>Usage</th></tr></thead><tbody><tr><td>Core: user markers</td><td>Smartico Campaigns, Automation rules, Gamification rewards (Missions and Badges), and manual update from CRM profile</td><td>Segmentation on Smartico side</td></tr><tr><td>Core: external markers</td><td>Integrated platform via API, Replica DB or Kafka/RabbitMQ</td><td>Segmentation on Smartico side</td></tr><tr><td>Core: JS Markers</td><td>Smartico Campaigns, Automation rules, Gamification rewards (Missions and Badges), manual update from CRM profile + from the front-end with JavaScript</td><td>Segmentation on Smartico side + Visible in the front-end JavaScript API</td></tr></tbody></table>

{% hint style="info" %}
Note: all users with corresponding markers are available for export from the Smartico Data warehouse, you can read about DWH [here](https://help.smartico.ai/welcome/technical-guides/smartico-data-warehouse.md)
{% endhint %}

## Frequently Asked Questions

### Are user markers and tags case-sensitive?

No. Smartico normalizes all marker strings to uppercase upon receipt and during evaluation. For example, setting `"vip"` or `"VIP"` assigns the marker `VIP`.

### How can I add a marker via API without removing existing markers on the player?

Use the `+` prefix in the property name within the `update_profile` payload (e.g., `{ "+core_external_markers": ["VIP"] }`). Sending the property name without a prefix replaces the existing array entirely.

### Can missions and badges award user markers to players?

Yes. Missions and badges can be configured with completion rewards such as [**Mark user**](https://help.smartico.ai/welcome/products/crm-automation/activities-of-flows/activity-update-property-mark-user-and-js-markers.md), [**Unmark user**](https://help.smartico.ai/welcome/products/crm-automation/activities-of-flows/activity-update-property-mark-user-and-js-markers.md), [**Set JS markers**](https://help.smartico.ai/welcome/products/crm-automation/activities-of-flows/activity-update-property-mark-user-and-js-markers.md), or [**Remove JS markers**](https://help.smartico.ai/welcome/products/crm-automation/activities-of-flows/activity-update-property-mark-user-and-js-markers.md) to update markers automatically upon completion.

### Can user markers be imported in bulk via CSV?

Yes. When importing user segments via CSV, you can include a `core_tags` column. Separate several markers in one cell with a semicolon (e.g., `VIP;TEST`); a JSON array is not parsed and would be saved as one marker. Note that uploading via CSV completely overwrites the user's existing tags.

### What is the difference between User Markers and Label Tags?

User markers (`core_tags`, `core_external_markers`, `core_public_tags`) are attributes attached to individual player profiles used for segmentation and automation routing. Label Tags are centralized content snippets used in email, SMS, and banner templates.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://help.smartico.ai/welcome/products/tools-and-guides/user-markers-tags.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
