Enrich unified profiles with the required features/traits to drive targeted campaigns.
2 minute read
Once you have performed identity stitching to map the individual entities to known identifiers, you can use its output to enhance the unified profiles with additional data points and features.
You can define the features/traits in your warehouse tables and further perform calculations over this data to devise meaningful outcomes, which can help marketing teams to run effective campaigns.
Define features
You can use var_group to define features. Each var_group can have multiple entity vars which can be considered as features for that entity. The Profiles project generates and runs SQL in the background and automatically adds the resulting features to a feature view.
You can produce a customer feature view or a feature view for specific projects like personalization, recommendations, or analytics.
You can combine the features to create even more features. You can also use custom SQL queries to enrich unified user profiles for advanced use cases.
A sample pb_project.yaml file with a definition of a feature_view::
var_groups:- name:user_varsentity_key:uservars:- entity_var:name:first_seenselect:min(timestamp::date)from:inputs/rsTracksis_feature:false- entity_var:name:last_seenselect:max(timestamp::date)from:inputs/rsTracksis_feature:false- entity_var:name:user_lifespanselect:'{{user.Var("last_seen")}} - {{user.Var("first_seen")}}'description:Life Time Value of a customer- entity_var:name:days_activeselect:count(distinct timestamp::date)from:inputs/rsTracksdescription:No. of days a customer was active# ID stitchermodels:- name:domain_profile_id_stitchermodel_type:id_stitchermodel_spec:validity_time:24h# 1 dayentity_key:usermaterialization:run_type:incrementaledge_sources:- from:inputs/rsIdentifies- from:inputs/rsTracks
Benefits
You can use the output of the identity graph to define or compute features based on given ID types. Feature views creates a view which will have all or a specified set of features on that entity from across the project based on the identifier column provided.
As the number of features/traits increases, Profiles makes the maintenance process much easier by using a configuration file (as opposed to large and complex SQL queries).
Profiles generates highly performant SQL to build feature views, which helps mitigate computing costs and engineering resources when the data sets become large, dependencies become complex, and features require data from multiple sources.
Use-cases
Create analytics queries like demographic views, user activity views, etc.
Send data using a Reverse ETL pipeline to various cloud destinations.
Use RudderStack Audiences to send customer profiles to marketing tools (available for beta customers).
This site uses cookies to improve your experience while you navigate through the website. Out of
these
cookies, the cookies that are categorized as necessary are stored on your browser as they are as
essential
for the working of basic functionalities of the website. We also use third-party cookies that
help
us
analyze and understand how you use this website. These cookies will be stored in your browser
only
with
your
consent. You also have the option to opt-out of these cookies. But opting out of some of these
cookies
may
have an effect on your browsing experience.
Necessary
Always Enabled
Necessary cookies are absolutely essential for the website to function properly. This
category only includes cookies that ensures basic functionalities and security
features of the website. These cookies do not store any personal information.
This site uses cookies to improve your experience. If you want to
learn more about cookies and why we use them, visit our cookie
policy. We'll assume you're ok with this, but you can opt-out if you wish Cookie Settings.