Tag Sending through the Container Tag
Note: The codes shown below should all go under the container tag.
Certain attributes or events of a user can provide useful information to segment. For example, a user viewing an article in a car may have tags (eg, "auto", "tesla"), or we may want to recognize an event from a user and send it to the DMP as a tag (example: "eventX"). For this there is a way to send labels to the DMP platform and the following:
<script>
_rely.push({'tags': lista_etiquetas });
_rely.send();
</script>
Following the example mentioned with the article of cars, the following should be sent:
<script>
_rely.push({'tags': 'auto,tesla'});
_rely.send();
</script>
Or an example of a completed form:
<script>
_rely.push({'tags': 'formCompletado'});
_rely.send();
</script>
The format is as follows:
Key: tags
Value: (comma separated text, where each of the attributes is a label)
In addition, this integration also allows you to create custom segments within the DM, recognizing users who have sent those specific tags. Following the example above, if we create a custom segment with the "auto" tag, we can recognize all users who visited an item that had that tag :