Dataphin tags enable the configuration of preference rules through visualization, transforming behavioral data into actionable insights as tag values. For instance, you can generate product preference tags based on consumers' browsing behavior over the past 7 days. This topic guides you through the creation of offline tags using behavioral preferences.
Prerequisites
Before creating behavioral preference tags, you must establish the corresponding behavioral relationship. For more information, see Add Behavioral Relationship .
Procedure
On the Dataphin home page, select Tag > Tag Workbench from the top menu bar.
In the top menu bar, select Project.
In the left-side navigation pane, select Tag Processing > Offline Tag.
On the Offline Tag page, click the Project Tags tab. Under the Project Tags tab, click Add Tag.
In the Add Offline Tag dialog box, click Behavior Preference Tag.
In the Basic Settings configuration of the new behavior preference tab, configure the business properties and technical properties of the behavior preference tag.
Business Attributes
Parameter
Description
Tag Name
Enter the name of the tag. Chinese characters, English letters, numbers, and underscores (_) are allowed, within 64 characters.
Entity-Entity ID
Select the entity-entity ID that needs to be defined based on business requirements.
Tag Type
Tag types are classified according to processing methods.
Attribute Tag: Used to describe objective facts and is the most basic tag for describing entity profiles, such as gender and name tags.
Statistical Tag: Generated by calculating based on entity behavior or basic attributes according to business requirements, such as the amount of purchase in the past 7 days.
Predictive Tag: Predicts entity characteristics or behavior based on algorithm models, such as predicting the user's resident province tag.
Composite Tag: Generated by combining tags through specific rules, such as consumer segmentation tags.
Timeliness
Timeliness describes the update frequency of tags as time changes, divided into dynamic and static tags.
Static Tag: Generally describes the inherent characteristics of an entity and usually does not change over time, such as gender and name tags.
Dynamic Tag: Needs to be dynamically updated over time to ensure the validity of the tag, such as the order amount in the past 7 days.
Tag Owner
Select the owner of the offline tag.
Tag Description
Enter a brief description of the tag, within 1000 characters.
Technical Attributes
Parameter
Description
Tag Code
The tag code is a globally unique identifier. For example, when there are tags with the same name in the created service, it can help you locate the specific tag. It must start with a lowercase letter and allows lowercase English letters, numbers, and underscores (_), within 64 characters.
Tag Update Method
Currently, only Periodic Update and Manual Update methods are supported.
Periodic Update: Automatically updates the tag at certain time intervals.
Manual Update: Updates the tag through manual operations.
Click Next.
When configuring the Processing Logic tab to add behavior preference tags, set up the Processing Logic details for these tags.
Parameter
Description
Version Number
Enter the name of your tag version number, default
V1. Allows letters, numbers, underscores (_), hyphens (-), and half-width periods (.), within 64 characters.Behavioral Relationship
Select the behavioral relationship you need to process. For the creation of behavioral relationships, see Add behavioral relationship.
NoteIf you use the behavioral relationship created before Dataphin V3.12, please first complete the operation and maintenance configuration of the behavioral relationship.
Behavioral Time
Supports Specific Time Period, Dynamic Time Period (recent N days), and Based On Calendar.
Specific Time Period: A time period from one day to another (accurate to the second).
Dynamic Time Period: Supports selecting Recent, This Year, This Month, and This Week.
Recent: You can select 7 days, 30 days, 90 days, 180 days, and Custom. When selecting custom, you also need to enter a positive integer within 7305 days (20 years).
This Year: After selecting this year, the default time period is
January 1st 00:00:00 to December 31st 23:59:59 of this year, for example,2025-01-01 00:00:00 to 2025-12-31 23:59:59.This Month: After selecting this month, the default time period is
the first day of this month 00:00:00 to the last day of this month 23:59:59 of this year, for example,2025-01-01 00:00:00 to 2025-01-31 23:59:59.This Week: After selecting this week, the default time period is
Monday 00:00:00 to Sunday 23:59:59 of this week of this month of this year, for example,2025-01-06 00:00:00 to 2025-01-12 23:59:59.
Based On Calendar: Based on the calendar, Recent 7 days, 30 days, 90 days, 180 days, and Custom. The default is the regular calendar, supporting switching to other already created calendars.
Click Switch Calendar.
In the switch calendar dialog box, configure the calendar and filter dates.
Select Calendar: The default is Regular Calendar, supporting switching to other already created calendars.
Filter date: Different calendars support different filter dates.
Regular Calendar: Supports filtering by Month, Week, Date. Conditions include Belong or Not Belong.
Custom Calendar supports filtering by Date Type or Tag.
Date Type: Includes Workday and Holiday.
Tag: Includes Include All, Include Any, Not Include.
NoteYou can click Remember Calendar. When creating a new Behavioral Preference or Behavioral Statistics tag, the default selection is this calendar.,
Click Confirm to complete the calendar switch.
Behavioral Preference
Select tag behavioral preference. Supports selecting Behavioral Attribute, Behavioral Object Attribute, Behavioral Object Tag, and defining behavioral preference by setting Maximum Value, Most Frequent Occurrence, or Custom Statistics.
NoteThe value type is a list.
Maximum Data Value: The top N statistical results with the maximum data value are used as tag values.
Most Frequent Occurrence: The top N statistical results with the most frequent occurrence are used as tag values.
Custom Statistics: Supports Absolute Value Ranking and Percentage.
Absolute value ranking: Supports statistical results such as top N ranking, Nth ranking, and ranking between as tag values.
Percentage ranking: Supports statistical results such as top N% (percentage) and between percentages (%) as tag values.
Filter Conditions/Custom Statistics
Custom Statistics: When the behavioral preference statistical type is Custom Statistics, you need to configure Statistical Object, Statistical Method, and Sorting Method.
Statistical Object: Supports Behavioral Attribute, Behavioral Object Attribute, Behavioral Object Tag.
Statistical Method: Supports Count, Count Distinct, Sum, Average, Maximum, Minimum.
Sorting Method: Supports Ascending and Descending.
Filter Conditions: Click +add Filter Condition to perform condition filtering. Supports Behavioral Attribute, Behavioral Object Attribute, Behavioral Object Tag, Behavioral Entity Attribute, Behavioral Entity Tag as conditions for filtering. When adding multiple condition filters, supports Or and And operations. Different tag value types support different conditions. Please refer to the actual interface display for details.
NoteThe filter conditions of behavioral preference tags can support filtering based on the calendar for behavioral time.
The configured lookup table condition configuration values support the following filter conditions. Details are as follows:
Single Choice: Equal to, Not equal to, Greater than or equal to, Greater than, Less than or equal to, Less than.
Multiple Choice: In range, Not in range.
No Selection: Empty, Not empty.
Manual Input: Fuzzy match, Fuzzy mismatch.
Click Submit to finalize the creation.
NoteBefore submitting, you can click Data Preview to verify the configuration is correct.
After creating the offline tag, you must publish it for normal use. Once published, project members can utilize the tag for further processing or audience group selection.
In the offline tag list, click the operation column
button to publish the tag.In the Publish Tag dialog box, select the tag version to publish.
NoteBefore publishing, you can click View Version Comparison to review version information and differences, ensuring verification before publishing.
Click Confirm to complete the publishing process.
What to do next
After you have created and published the behavioral preference tags, you can list the tag for management in the corresponding market and use it in subsequent tag development. For more information, see Manage Tags.