In Drift, you can show specific messaging based off attributes of a site visitor.
- Show a promotional message in the last 5 days of a trial.
- Present a welcome message to your premium users for in-app support.
- Personalize your messaging with custom fields unique to your business.
In order to target these attributes effectively, they need to be represented correctly within Drift.
We have the following data types that allow you to categorize the data you want inside of Drift.
The date record can be set three different ways:
ISO DateTime String -
By default, fields within Drift are of
text data type. To use one of the other options, create a new attribute and select the data type that you are interested in.
To create and manage contact attributes, you should be an admin user for your account. Navigate to the following page in the Drift UI:
Select "Create new attribute"
In this example, we are going to create a new attribute that will hold
Display name vs. Internal name
When referencing the attribute in code, use the developer name for the attribute.
The developer name for this attribute is
custom_date_time, as the rule is:
- all lowercase, with underscores for the spaces.
Next, let's pass a time to Drift in this attribute from the browser!
Now, we can see the value populate within Drift on the contact record.
Setting bad values
Note that if you attempt to send an incorrect or invalid value (based on the attribute's current type), the contact update may be ignored.
Updated 5 months ago