Tag UsersUpdated 21/05/2019


Applies a category tag on the user based on them belonging to one or more segments


if (isInSegment("Highly Qualified") && isInSegment("Connected This week")) {
  traits({ category: 'active' });
} else if (isInSegment("Not Qualified") && !isInSegment("Connected This week")) {
  traits({ category: 'no_fit' });
} else if (isInSegment("Highly Qualified") && !isInSegment("Connected This week")) {
  traits({ category: 'churn_risk' });
} else if (isInSegment("Not Qualified") && isInSegment("Connected This week")) {
  traits({ category: 'needs_onboarding' });
} else {
  traits({ category: 'manual_operation' });
}