Understanding Tags and Their Usage
Tags are a powerful tool for labeling and segmenting visitors. They can be used to group visitors or trigger specific automations based on their assigned tags.
Tag Decay
Tags can be configured to automatically delete themselves after a certain period. This feature is particularly useful for temporary tags, such as marking a visitor as a "new user" and then automatically removing the tag after a week.
Tip: Use tag decay to manage temporary states of your visitors. This can help keep your visitor data clean and up-to-date.
Tag Groups
Organizing tags into groups can enhance your segmentation capabilities. Tag groups can be configured to be unique, meaning a visitor can only have one tag from that group at a time.
Tip: Use unique tag groups when you want to categorize visitors into exclusive categories. For example, you could have a tag group for 'Subscription Status' with tags like 'Free', 'Premium', and 'VIP'. A visitor can only have one of these tags at a time.
Using Tags in Liquid
You can access tags using {{ visitor.tags }}
. Here's a simple example of how to use it with contains
in Liquid:
{% if visitor.tags contains 'VIP' %}
<p>Welcome, VIP member!</p>
{% endif %}
Tag Attributes
These are the key attributes associated with each tag:
Attribute | Description |
---|---|
name | The name of the tag |
decay | The decay rate of the tag (how quickly it will disappear) |
Tag Associations
These are the key associations linked to each tag:
Association | Description |
---|---|
visitor | The visitor that the tag has been assigned to |
tag group | The tag group that the tag belongs to |